/* portal/assets/css/portal.css - Frag & Frame Root Portal Stylesheet */

:root {
    --bg-dark: #070a12;
    --bg-surface: #0f1523;
    --bg-surface-elevated: #1a2236;
    --bg-surface-hover: #242f49;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);

    --accent-cyan: #06b6d4;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --success: #10b981;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.12) 0px, transparent 45%),
        radial-gradient(at 85% 85%, rgba(6, 182, 212, 0.08) 0px, transparent 45%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: #818cf8;
}

/* ================= Header / Navbar ================= */
.navbar {
    background: rgba(15, 21, 35, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: -0.5px;
}
.brand-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.6));
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: var(--bg-surface-elevated);
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #7174fc, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: #fff;
}
.btn-secondary {
    background: var(--bg-surface-elevated);
    color: #fff;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-surface-hover);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--text-muted);
}
.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

/* ================= Main Container ================= */
.main-wrapper {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ================= Hero Showcase ================= */
.hero-portal {
    padding: 3rem 1rem 3.5rem;
    text-align: center;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Featured Game Banner */
.featured-game-banner {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), var(--bg-surface));
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: var(--shadow-card);
    margin-bottom: 4rem;
    text-align: left;
}
.featured-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 0.8rem;
}
.featured-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}
.featured-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.featured-preview-box {
    background: #020617;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.featured-preview-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* ================= Games Catalog Grid ================= */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4rem;
}
.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}
.game-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #020617;
}
.game-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.game-card-status {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.status-live { color: var(--success); }
.status-beta { color: var(--accent-amber); }
.status-upcoming { color: var(--accent-cyan); }
.game-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}
.game-card-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* ================= Articles / Editorial Grid ================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}
.article-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}
.article-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}
.article-category {
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.article-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    color: #fff;
}
.article-card-title a {
    color: #fff;
}
.article-card-title a:hover {
    color: var(--primary);
}
.article-card-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}
.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

/* ================= Article Reader Page ================= */
.article-detail-header {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.article-detail-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 1rem 0;
    color: #fff;
}
.article-detail-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
}
.article-body-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}
.article-body-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 2rem 0 1rem;
}
.article-body-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 1.5rem 0 0.8rem;
}
.article-body-content p {
    margin-bottom: 1.25rem;
}
.article-body-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}
.article-body-content li {
    margin-bottom: 0.5rem;
}
.tip-box {
    background: rgba(99, 102, 241, 0.12);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
    color: #e0e7ff;
}

/* ================= Ad Slots ================= */
.ad-slot-container {
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ad-test-box {
    width: 100%;
    max-width: 728px;
    min-height: 80px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
}
.ad-test-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

/* ================= Footer ================= */
.site-footer {
    background: #04060b;
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 1.5rem 2rem;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    max-width: 320px;
}
.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-col a {
    color: var(--text-dim);
    font-size: 0.88rem;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.3rem; }
    .featured-game-banner { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}
