/**
 * Nuts Online Gambling Theme - kasinohuone.ai
 * Dark casino theme with green CTAs, orange labels, pink accents
 */

/* ==========================================================================
   HERO - Full-width background image with overlay
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1);
    min-height: 600px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/ref/hero-bg.jpg') center top / cover no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(6, 2, 12, 0.5) 0%,
        rgba(11, 4, 22, 0.7) 60%,
        rgba(11, 4, 22, 0.95) 100%);
}

.hero-bg::after {
    display: none;
}

/* Red/pink gradient accent in top-right corner like reference */
.hero-accent-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse at top right,
        rgba(248, 47, 119, 0.4) 0%,
        rgba(242, 112, 68, 0.2) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Hide old decorations */
.hero-decor-left,
.hero-decor-right,
.hero-decor-accent,
.hero-decor-spade,
.hero-decor-heart,
.hero-decor-club,
.hero-decor-dice,
.hero-decor-chips,
.hero-decor-cards,
.hero-decor-extra,
.hero-decor-roulette,
.hero-decor-roulette2 {
    display: none !important;
}

.hero-main {
    position: relative;
    z-index: 3;
    padding: calc(var(--header-height) + 80px) 0 60px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
}

.hero-content::before {
    display: none;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: var(--color-primary);
    text-shadow: 0 0 30px rgba(51, 202, 104, 0.5);
}

.hero-title span::after {
    display: none;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

.hero-buttons {
    background: none;
    border: none;
    padding: 0;
    gap: var(--space-md);
}

.hero .btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 14px 36px;
    font-size: var(--text-base);
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(51, 202, 104, 0.4);
    border: none;
    text-shadow: none;
}

.hero .btn-primary::before {
    display: none;
}

.hero .btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(51, 202, 104, 0.5);
}

.hero .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: var(--radius-md);
}

.hero .btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(51, 202, 104, 0.1);
}

.hero-divider {
    display: none;
}

.hero-trust {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    margin-top: var(--space-xl);
}

.hero-trust-item svg {
    fill: var(--color-primary);
}

.hero-bottom {
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
}

.hero-bottom::before {
    display: none;
}

/* ==========================================================================
   WHY CHOOSE US - Two-column section
   ========================================================================== */

.why-choose-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.why-choose-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.why-choose-image img {
    width: 100%;
    height: auto;
    display: block;
}

.why-choose-label {
    display: inline-block;
    color: var(--color-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.why-choose-title {
    font-size: var(--text-3xl);
    color: #fff;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.why-choose-text {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.why-choose-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.why-choose-list li {
    padding: var(--space-sm) 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.why-choose-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================================================
   TOP SERVICES - 4 icon cards
   ========================================================================== */

.services-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
}

.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    align-items: start;
}

.services-label {
    display: inline-block;
    color: var(--color-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.services-title {
    font-size: var(--text-3xl);
    color: #fff;
    line-height: 1.2;
}

.services-desc {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.service-card {
    padding: var(--space-xl);
    background: transparent;
    border: none;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 1.5;
}

.service-card-title {
    font-size: var(--text-base);
    color: #fff;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    transition: color 0.3s ease;
}

.service-card-link:hover {
    color: var(--color-primary);
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* ==========================================================================
   VIDEO / ATMOSPHERE SECTION
   ========================================================================== */

.atmosphere-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.atmosphere-section .atmosphere-bg {
    position: absolute;
    inset: 0;
    background: url('/images/ref/game-poker.jpg') center / cover no-repeat;
}

.atmosphere-section .atmosphere-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 4, 22, 0.5);
}

.atmosphere-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.atmosphere-play:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.atmosphere-play svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 4px;
}

/* ==========================================================================
   AWESOME GAMES - 3 game cards
   ========================================================================== */

.games-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

.games-label {
    display: block;
    text-align: center;
    color: var(--color-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.games-title {
    text-align: center;
    font-size: var(--text-3xl);
    color: #fff;
    margin-bottom: var(--space-3xl);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.game-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg-card);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.game-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.08);
}

.game-card-body {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card-title {
    font-size: var(--text-base);
    color: #fff;
    font-weight: 600;
}

.game-card-arrow {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.game-card:hover .game-card-arrow {
    color: var(--color-primary);
}

/* ==========================================================================
   CREATIVE APPROACH - 2-column with illustration
   ========================================================================== */

.creative-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.creative-stain-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 400px;
    height: 100%;
    background: url('/images/ref/casino-stain-1.png') left bottom / contain no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

.creative-stain-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background: url('/images/ref/casino-stain-3.png') right top / contain no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

.creative-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.creative-image {
    max-width: 500px;
}

.creative-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.creative-label {
    display: inline-block;
    color: var(--color-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.creative-title {
    font-size: var(--text-3xl);
    color: #fff;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.creative-text {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   BLOG / LATEST ARTICLES
   ========================================================================== */

.blog-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

.blog-label {
    display: block;
    text-align: center;
    color: var(--color-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.blog-title {
    text-align: center;
    font-size: var(--text-3xl);
    color: #fff;
    margin-bottom: var(--space-3xl);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.blog-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-body {
    padding: var(--space-lg);
}

.blog-card-date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.blog-card-title {
    font-size: var(--text-lg);
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   SECTION OVERRIDES for dark theme
   ========================================================================== */

.section-title {
    color: #fff;
}

.category-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(51, 202, 104, 0.2);
}

.category-card-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.category-card-title {
    color: #fff;
}

.stats-section {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat-number {
    color: var(--color-primary);
}

/* Tags section dark */
.tags-section {
    background: var(--color-bg-alt);
}

.tags-section::before,
.tags-section::after {
    background: linear-gradient(90deg, transparent, rgba(51, 202, 104, 0.2), transparent);
}

.tag-card {
    background: var(--color-bg-card);
    border-color: var(--color-border);
}

.tag-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(51, 202, 104, 0.15);
}

.tag-card-icon {
    background: rgba(51, 202, 104, 0.15);
    color: var(--color-primary);
}

.tag-card-name {
    color: #fff;
}

.tag-card-count {
    background: rgba(51, 202, 104, 0.15);
    color: var(--color-primary);
}

.tag-card-featured {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.tag-card-featured .tag-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tag-card-featured .tag-card-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* SEO content dark */
.seo-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

.seo-content p {
    color: var(--color-text-muted);
}

/* Carousel dark */
.kw-pill {
    background: var(--color-bg-card);
    border-color: var(--color-border);
    color: rgba(255, 255, 255, 0.8);
}

.kw-pill:hover {
    border-color: var(--color-primary);
    background: rgba(51, 202, 104, 0.1);
    color: var(--color-primary);
}

/* Modal dark */
.modal {
    background: var(--color-bg-card);
}

.modal-header {
    border-bottom-color: var(--color-border);
}

.modal-title {
    color: var(--color-primary);
}

.modal-body h2 {
    color: var(--color-primary);
}

.modal-body p {
    color: var(--color-text-muted);
}

/* Footer stains */
.footer {
    position: relative;
    overflow: hidden;
}

.footer-stain-left,
.footer-stain-right {
    position: absolute;
    bottom: 0;
    width: 350px;
    height: 250px;
    pointer-events: none;
    opacity: 0.15;
}

.footer-stain-left {
    left: 0;
    background: url('/images/ref/footer-stain-left.png') left bottom / contain no-repeat;
}

.footer-stain-right {
    right: 0;
    background: url('/images/ref/footer-stain-right.png') right bottom / contain no-repeat;
}

/* Buttons global */
.btn-primary {
    background: var(--color-primary);
    box-shadow: 0 4px 15px rgba(51, 202, 104, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(51, 202, 104, 0.5);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease forwards;
}

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

@media (max-width: 1024px) {
    .why-choose-grid,
    .creative-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .services-header {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .atmosphere-section {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-main {
        padding: calc(var(--header-height) + 40px) 0 20px;
    }

    .hero {
        min-height: 450px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .atmosphere-section {
        height: 280px;
    }

    .atmosphere-play {
        width: 60px;
        height: 60px;
    }

    .atmosphere-play svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   SUBCATEGORY CARDS — category.php
   ========================================================================== */

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.subcat-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subcat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 202, 104, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.subcat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 202, 104, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(51, 202, 104, 0.1);
}

.subcat-card:hover::before {
    opacity: 1;
}

/* Icon */
.subcat-card-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background: rgba(51, 202, 104, 0.06);
    border: 1px solid rgba(51, 202, 104, 0.12);
    border-radius: var(--radius-lg);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.subcat-card:hover .subcat-card-icon {
    background: rgba(51, 202, 104, 0.12);
    border-color: rgba(51, 202, 104, 0.25);
    transform: scale(1.06);
}

.subcat-card-icon svg {
    width: 34px;
    height: 34px;
}

/* Content */
.subcat-card-content {
    flex: 1;
    min-width: 0;
}

.subcat-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.subcat-card:hover .subcat-card-title {
    color: var(--color-primary);
}

.subcat-card-count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Arrow */
.subcat-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.subcat-card:hover .subcat-card-arrow {
    color: #fff;
    background: var(--color-primary);
    transform: translateX(3px);
}

.subcat-card-arrow svg {
    width: 18px;
    height: 18px;
}

/* Alternating accents */
.subcat-card:nth-child(3n+2)::before {
    background: linear-gradient(135deg, rgba(242, 112, 68, 0.03) 0%, transparent 60%);
}
.subcat-card:nth-child(3n+2) .subcat-card-icon {
    color: var(--color-secondary);
    background: rgba(242, 112, 68, 0.06);
    border-color: rgba(242, 112, 68, 0.12);
}
.subcat-card:nth-child(3n+2):hover {
    border-color: rgba(242, 112, 68, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(242, 112, 68, 0.1);
}
.subcat-card:nth-child(3n+2):hover .subcat-card-icon {
    background: rgba(242, 112, 68, 0.12);
    border-color: rgba(242, 112, 68, 0.25);
}
.subcat-card:nth-child(3n+2):hover .subcat-card-title {
    color: var(--color-secondary);
}
.subcat-card:nth-child(3n+2):hover .subcat-card-arrow {
    background: var(--color-secondary);
}

.subcat-card:nth-child(3n+3)::before {
    background: linear-gradient(135deg, rgba(248, 47, 119, 0.03) 0%, transparent 60%);
}
.subcat-card:nth-child(3n+3) .subcat-card-icon {
    color: var(--color-accent);
    background: rgba(248, 47, 119, 0.06);
    border-color: rgba(248, 47, 119, 0.12);
}
.subcat-card:nth-child(3n+3):hover {
    border-color: rgba(248, 47, 119, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(248, 47, 119, 0.1);
}
.subcat-card:nth-child(3n+3):hover .subcat-card-icon {
    background: rgba(248, 47, 119, 0.12);
    border-color: rgba(248, 47, 119, 0.25);
}
.subcat-card:nth-child(3n+3):hover .subcat-card-title {
    color: var(--color-accent);
}
.subcat-card:nth-child(3n+3):hover .subcat-card-arrow {
    background: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .subcat-grid {
        grid-template-columns: 1fr;
    }
    .subcat-card {
        padding: var(--space-lg);
    }
    .subcat-card-icon {
        width: 52px;
        height: 52px;
    }
    .subcat-card-icon svg {
        width: 28px;
        height: 28px;
    }
}
