/* ================================================================
   AUTOMATION PAGE CARDS — Ultra Premium Futuristic Design
   Used by: automation.html ONLY
   ================================================================ */

/* ── Base reset for automation cards ─────────────────────────── */
body .automation-page .game-card {
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    align-items: stretch !important;
    text-align: left !important;
    padding: 0 !important;
    position: relative !important;
}

/* ── CORE CARD SHELL ──────────────────────────────────────────── */
body .automation-page .theme-one-ui-8.game-card {
    background: #0a0a1a !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 4px 6px rgba(0,0,0,0.4),
        0 20px 50px rgba(0,0,0,0.5),
        0 0 60px rgba(99,102,241,0.04) !important;
    padding: 0 !important;
    overflow: hidden !important;
    min-height: auto !important;
    height: auto !important;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease !important;
    cursor: pointer !important;
}

body .automation-page .theme-one-ui-8.game-card:hover {
    transform: translateY(-12px) !important;
    border-color: rgba(139,92,246,0.3) !important;
    box-shadow:
        0 0 0 1px rgba(139,92,246,0.15) inset,
        0 8px 16px rgba(0,0,0,0.5),
        0 32px 72px rgba(0,0,0,0.6),
        0 0 80px rgba(99,102,241,0.12),
        0 0 120px rgba(139,92,246,0.06) !important;
}

/* ── ANIMATED NEON TOP BORDER ─────────────────────────────────── */
body .automation-page .theme-one-ui-8.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #6366f1 20%,
        #8b5cf6 40%,
        #06b6d4 60%,
        #8b5cf6 80%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: neonSlide 4s ease-in-out infinite;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.4s ease, height 0.3s ease;
}
body .automation-page .theme-one-ui-8.game-card:hover::before {
    opacity: 1;
    height: 2px;
    box-shadow: 0 0 12px rgba(139,92,246,0.8), 0 0 24px rgba(99,102,241,0.4);
}

@keyframes neonSlide {
    0%   { background-position: 100% 0; }
    50%  { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* ── GLOW ORB BACKGROUND ──────────────────────────────────────── */
body .automation-page .theme-one-ui-8.game-card::after {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(99,102,241,0.1) 0%,
        rgba(139,92,246,0.04) 40%,
        transparent 70%
    );
    top: -80px; right: -80px;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0.6;
}
body .automation-page .theme-one-ui-8.game-card:hover::after {
    transform: scale(1.4);
    opacity: 1;
}

/* ── POSTER IMAGE ─────────────────────────────────────────────── */
body .automation-page .theme-one-ui-8 .gc-img-box {
    width: 100% !important;
    height: 200px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    background: linear-gradient(145deg, #0f0c29, #1a1040, #302b63) !important;
    box-shadow: none !important;
    position: relative !important;
}

/* Dark gradient fade at bottom of image */
body .automation-page .theme-one-ui-8 .gc-img-box::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #0a0a1a);
    z-index: 2;
}

body .automation-page .theme-one-ui-8 .gc-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.85 !important;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
}
body .automation-page .theme-one-ui-8.game-card:hover .gc-img {
    transform: scale(1.1) !important;
    opacity: 0.95 !important;
}

/* ── CONTENT AREA ─────────────────────────────────────────────── */
body .automation-page .theme-one-ui-8 .gc-content {
    width: 100% !important;
    padding: 22px 22px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    flex: 1 !important;
    position: relative !important;
    z-index: 3 !important;
    background: transparent !important;
}

/* ── TITLE ────────────────────────────────────────────────────── */
body .automation-page .theme-one-ui-8 .gc-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    margin-bottom: 10px !important;
    text-transform: none !important;
    min-height: auto !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    /* Gradient text */
    background: linear-gradient(135deg, #e2e8f0 0%, #c7d2fe 60%, #a5b4fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ── DESCRIPTION ──────────────────────────────────────────────── */
body .automation-page .theme-one-ui-8 .gc-desc {
    font-size: 13px !important;
    color: rgba(148,163,184,0.85) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

/* ── META TILES ───────────────────────────────────────────────── */
body .automation-page .theme-one-ui-8 .gc-meta-row {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}
body .automation-page .theme-one-ui-8 .gc-meta-tile {
    background: rgba(99,102,241,0.1) !important;
    border: 1px solid rgba(99,102,241,0.2) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #a5b4fc !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    backdrop-filter: blur(4px) !important;
}
body .automation-page .theme-one-ui-8 .gc-meta-tile i { color: #818cf8 !important; }

/* ── FEATURE TILES ────────────────────────────────────────────── */
body .automation-page .theme-one-ui-8 .gc-feature-tiles {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
    justify-content: flex-start !important;
}
body .automation-page .theme-one-ui-8 .feat-tile {
    background: rgba(139,92,246,0.1) !important;
    color: #c4b5fd !important;
    padding: 4px 11px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: 1px solid rgba(139,92,246,0.2) !important;
    letter-spacing: 0.2px !important;
}

/* ── NEW / BADGE TAG ──────────────────────────────────────────── */
body .automation-page .theme-one-ui-8 .new-tag {
    top: 14px !important;
    right: 14px !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 5px 12px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 4px 16px rgba(99,102,241,0.5), 0 0 20px rgba(139,92,246,0.3) !important;
    z-index: 20 !important;
}

/* ── CTA BUTTON — Futuristic Neon ─────────────────────────────── */
body .automation-page .theme-one-ui-8 .gc-btn,
body .automation-page .gc-btn,
body .automation-page .tc-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 1px solid rgba(139,92,246,0.4) !important;
    cursor: pointer !important;
    margin-top: auto !important;
    position: relative !important;
    overflow: hidden !important;
    color: #fff !important;
    /* Dark glass base with gradient */
    background: linear-gradient(
        135deg,
        rgba(99,102,241,0.25) 0%,
        rgba(139,92,246,0.3) 50%,
        rgba(6,182,212,0.2) 100%
    ) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow:
        0 0 0 1px rgba(139,92,246,0.2) inset,
        0 4px 16px rgba(99,102,241,0.2) !important;
}

/* Shimmer sweep on button */
body .automation-page .theme-one-ui-8 .gc-btn::before,
body .automation-page .gc-btn::before,
body .automation-page .tc-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.12) 50%,
        transparent 70%
    );
    transition: left 0.5s ease;
}
body .automation-page .theme-one-ui-8 .gc-btn:hover::before,
body .automation-page .gc-btn:hover::before,
body .automation-page .tc-btn:hover::before {
    left: 100%;
}

body .automation-page .theme-one-ui-8 .gc-btn:hover,
body .automation-page .gc-btn:hover,
body .automation-page .tc-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    background: linear-gradient(
        135deg,
        rgba(99,102,241,0.5) 0%,
        rgba(139,92,246,0.55) 50%,
        rgba(6,182,212,0.4) 100%
    ) !important;
    border-color: rgba(139,92,246,0.7) !important;
    box-shadow:
        0 0 0 1px rgba(139,92,246,0.4) inset,
        0 8px 28px rgba(99,102,241,0.4),
        0 0 40px rgba(139,92,246,0.2) !important;
}

/* Ensure visibility */
body .automation-page .gc-btn,
body .automation-page .gc-meta-row,
body .automation-page .gc-feature-tiles { display: flex !important; }
body .automation-page .gc-btn { display: block !important; }

/* ── HORIZONTAL TOP CARDS (automation page) ───────────────────── */
body .automation-page .layout-horizontal.theme-one-ui-8.game-card {
    flex-direction: row !important;
    height: 110px !important;
    min-height: 110px !important;
    padding: 14px !important;
    align-items: center !important;
    text-align: left !important;
    background: linear-gradient(135deg, #0d0d1f, #12102a) !important;
}
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-img-box {
    width: 82px !important; height: 82px !important;
    margin-bottom: 0 !important; margin-right: 14px !important;
    border-radius: 16px !important; flex-shrink: 0 !important;
}
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-img-box::after {
    display: none !important;
}
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-img {
    opacity: 0.9 !important;
}
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-content {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 !important;
    justify-content: center !important;
    height: 100% !important;
}
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-btn,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-meta-row,
body .automation-page .layout-horizontal.theme-one-ui-8.game-card .gc-feature-tiles {
    display: none !important;
}
