/**
 * Components CSS - MPO2121 New Design
 * Orange (#EA580C) + Dark Slate (#0F172A) + Amber (#FBBF24)
 */

/* ==========================================================================
   BASE & TYPOGRAPHY
   ========================================================================== */

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; }

/* ==========================================================================
   HEADER — Two-Tier Layout
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed, 300);
}

/* Top bar */
.header-topbar {
    background: var(--color-secondary-dark, #020617);
    height: var(--topbar-height, 36px);
    border-bottom: 1px solid rgba(234,88,12,0.2);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #FBBF24;
    font-weight: 700;
    font-size: 0.78rem;
}

.topbar-dot {
    color: rgba(255,255,255,0.25);
}

.topbar-item {
    color: rgba(255,255,255,0.55);
}

.topbar-right {}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(234,88,12,0.9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 99px;
    text-decoration: none;
    transition: background 0.2s ease;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}
.topbar-cta:hover { background: #C2410C; }

/* Main header bar */
.header-main {
    background: var(--color-bg-header, #0F172A);
    height: var(--header-height, 64px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(234,88,12,0.15);
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    height: 38px;
    width: auto;
}

/* Main Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.85rem;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(234,88,12,0.18);
}

.nav-link.active {
    color: #FB923C;
}

.nav-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: var(--z-dropdown, 100);
    padding-top: 6px;
}

.nav-dropdown-inner {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    padding: 0.5rem;
    border: 1px solid rgba(226,232,240,0.8);
    max-height: 420px;
    overflow-y: auto;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    color: var(--color-text);
    font-size: 0.87rem;
    font-weight: 500;
    border-radius: 7px;
    transition: all 0.15s ease;
}

.nav-dropdown-link:hover {
    background: rgba(234,88,12,0.07);
    color: #EA580C;
}

.nav-dropdown-link.active {
    background: rgba(234,88,12,0.12);
    color: #EA580C;
    font-weight: 600;
}

.nav-dropdown-link small {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.nav-dropdown-sub {
    padding-left: 1.5rem;
    font-size: 0.82rem;
    color: var(--color-text-light);
}

/* CTA Button in nav */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #EA580C;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 7px;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(234,88,12,0.3);
}
.nav-cta-btn:hover {
    background: #C2410C;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(234,88,12,0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.9);
    border-radius: 2px;
    transition: all 0.2s ease;
    display: block;
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.7);
    backdrop-filter: blur(4px);
    z-index: var(--z-overlay, 290);
}

.mobile-overlay.active { display: block; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--color-secondary);
    z-index: var(--z-mobile-nav, 300);
    transition: right 0.35s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}

.mobile-nav.active { right: 0; }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav-logo img { height: 32px; width: auto; }

.mobile-nav-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-nav-close:hover { background: rgba(234,88,12,0.3); }
.mobile-nav-close svg { width: 18px; height: 18px; }

.mobile-nav-links {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.mobile-nav-item {
    border-radius: 8px;
    overflow: hidden;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(234,88,12,0.15);
    color: #FB923C;
}

.mobile-nav-link svg { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.2s; }
.mobile-nav-item.open > .mobile-nav-link svg { transform: rotate(180deg); }

.mobile-nav-dropdown {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border-radius: 0 0 8px 8px;
    padding: 0.25rem 0;
}
.mobile-nav-item.open .mobile-nav-dropdown { display: flex; }

.mobile-nav-dropdown a {
    display: block;
    padding: 0.55rem 1.5rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.87rem;
    font-weight: 500;
    transition: color 0.2s;
}
.mobile-nav-dropdown a:hover,
.mobile-nav-dropdown a.active { color: #FB923C; }

.mobile-nav-all {
    font-weight: 600;
    color: rgba(255,255,255,0.75) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.25rem;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EA580C;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.2s;
    letter-spacing: 0.03em;
}
.mobile-cta-btn:hover { background: #C2410C; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--color-bg-footer, #020617);
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 0;
    margin-top: auto;
    border-top: 1px solid rgba(234,88,12,0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover { color: #FB923C; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
    max-width: 600px;
}

.footer-bottom > p:last-child {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
}

/* Footer logo area */
.footer .header-logo {
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
    padding: 2.5rem 0 4rem;
}

.article-hero {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid rgba(234,88,12,0.15);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}
.article-breadcrumb a:hover { color: #FB923C; }
.article-breadcrumb svg { width: 12px; height: 12px; opacity: 0.4; }

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}

.article-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(234,88,12,0.2);
    color: #FB923C;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.78rem;
}

/* Article content */
.article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--font-heading);
    margin: 2rem 0 0.75rem;
    color: var(--color-text);
}

.article-content h2 { font-size: 1.6rem; border-bottom: 2px solid rgba(234,88,12,0.15); padding-bottom: 0.5rem; }
.article-content h3 { font-size: 1.3rem; color: #EA580C; }
.article-content h4 { font-size: 1.1rem; }

.article-content p { margin-bottom: 1.25rem; }

.article-content a { color: #EA580C; border-bottom: 1px solid rgba(234,88,12,0.3); }
.article-content a:hover { color: #C2410C; border-bottom-color: #C2410C; }

.article-content ul, .article-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-content li::marker { color: #EA580C; }

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    border-radius: 10px;
    overflow: hidden;
}

.article-content th {
    background: var(--color-secondary);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.88rem;
}

.article-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--color-bg-dark); }

.article-content blockquote {
    border-left: 4px solid #EA580C;
    background: rgba(234,88,12,0.05);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: var(--color-text-light);
    font-style: italic;
}

.article-content img {
    border-radius: 10px;
    margin: 1rem 0;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(234,88,12,0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 1em;
    background: #EA580C;
    border-radius: 2px;
}

.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }

.sidebar-link {
    display: block;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    color: var(--color-text-light);
    border-radius: 7px;
    transition: all 0.2s;
    font-weight: 500;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(234,88,12,0.06);
    border-color: rgba(234,88,12,0.2);
    color: #EA580C;
}

.sidebar-link.active {
    background: rgba(234,88,12,0.1);
    border-color: rgba(234,88,12,0.3);
    color: #EA580C;
    font-weight: 600;
}

/* ==========================================================================
   CATEGORY / SUBCATEGORY PAGE
   ========================================================================== */

.page-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(234,88,12,0.15);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(234,88,12,0.12) 0%, transparent 70%);
}

.page-hero-inner { position: relative; }

.page-hero-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FBBF24;
    margin-bottom: 0.5rem;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.page-hero-desc {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.65;
}

/* Subcategory tabs */
.subcats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0;
}

.subcat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.2s;
}

.subcat-tab:hover,
.subcat-tab.active {
    background: #EA580C;
    border-color: #EA580C;
    color: #fff;
    box-shadow: 0 2px 12px rgba(234,88,12,0.35);
}

/* Article cards grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(234,88,12,0.18);
    border-color: rgba(234,88,12,0.3);
}

.article-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #1E293B, #0F172A);
}

.article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #EA580C;
    margin-bottom: 0.5rem;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    flex: 1;
}

.article-card-arrow {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #EA580C;
    margin-top: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover,
.page-link.current {
    background: #EA580C;
    border-color: #EA580C;
    color: #fff;
}

.page-link.prev, .page-link.next { width: auto; padding: 0 1rem; }

/* ==========================================================================
   CASINO CARDS (from API — do not touch PHP, only restyle HTML)
   ========================================================================== */

.casino-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.casino-card-new {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    border: 1px solid rgba(234,88,12,0.25);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.casino-card-new:hover {
    border-color: rgba(234,88,12,0.5);
    box-shadow: 0 6px 24px rgba(234,88,12,0.2);
    transform: translateY(-2px);
}

.casino-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.casino-card-body { flex: 1; }

.casino-card-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.casino-card-bonus {
    font-size: 0.82rem;
    color: #FBBF24;
    font-weight: 600;
}

.casino-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #EA580C;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    flex-shrink: 0;
    transition: background 0.2s;
    text-decoration: none;
}
.casino-card-cta:hover { background: #C2410C; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 44px; height: 44px;
    background: rgba(234,88,12,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #EA580C;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg-card);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #EA580C;
    box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}

.form-textarea { resize: vertical; min-height: 140px; }

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #EA580C;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.submit-btn:hover {
    background: #C2410C;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(234,88,12,0.4);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 3rem 1.5rem;
}

.page-404-num {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #EA580C, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-404 p {
    color: var(--color-text-light);
    max-width: 420px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   TAG PAGE
   ========================================================================== */

.tag-hero {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(234,88,12,0.15);
}

.tag-name {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(234,88,12,0.15);
    border: 1px solid rgba(234,88,12,0.35);
    color: #FB923C;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 99px;
    margin-bottom: 1rem;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-primary { background: rgba(234,88,12,0.1); color: #EA580C; }
.badge-accent { background: rgba(251,191,36,0.15); color: #D97706; }
.badge-success { background: rgba(16,185,129,0.1); color: #10B981; }

/* Toast / Notification */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-toast, 500);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast {
    background: var(--color-secondary);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    border-left: 3px solid #EA580C;
    animation: toastSlideIn 0.35s ease;
    min-width: 260px;
    max-width: 360px;
}

/* ==========================================================================
   REVEAL ANIMATIONS (shared — used by IntersectionObserver in footer.php)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-main { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-topbar { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .article-hero { padding: 2rem 0 1.5rem; }
    .page-hero { padding: 2rem 0; }
}

@media (max-width: 480px) {
    .casino-grid-new { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .subcats-row { gap: 0.4rem; }
    .subcat-tab { font-size: 0.8rem; padding: 0.4rem 0.85rem; }
}

/* ==========================================================================
   CATEGORY ICON GRID (shared with category.php and homepage)
   ========================================================================== */

.cat-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cat-icon-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cat-icon-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #EA580C, #FBBF24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.cat-icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(234,88,12,0.18);
    border-color: rgba(234,88,12,0.3);
}
.cat-icon-card:hover::after { transform: scaleX(1); }

.cat-icon-wrap {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(234,88,12,0.12), rgba(251,191,36,0.08));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #EA580C;
}
.cat-icon-wrap svg { width: 28px; height: 28px; }

.cat-icon-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.cat-icon-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    background: var(--color-bg-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}
