/* ============================================================
   HOME PAGE STYLES — Rectangle Rooms Landing Page
   ============================================================ */

/* ---- Geometric Backgrounds & Accents ---- */
.geom-bg {
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

.geom-bg-subtle {
    background-image: 
        radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
    background-color: var(--bg-color);
}

.geom-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    pointer-events: none;
    z-index: 0;
}
.geom-corner.top-left {
    top: 20px;
    left: 20px;
    border-top-width: 2px;
    border-left-width: 2px;
}
.geom-corner.top-right {
    top: 20px;
    right: 20px;
    border-top-width: 2px;
    border-right-width: 2px;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
    background: var(--bg-color); /* Mask the grid behind the content slightly if needed */
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 10px 10px 0px rgba(0,0,0,0.03);
    margin: 0 20px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 2px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    background: var(--bg-color);
}

.hero-text h1:not(.hero-tagline) {
    font-size: 4rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #5a6460;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 420px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.hero-cta .btn-primary:hover {
    background-color: var(--primary-dark);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hero-laptop-wrapper {
    background: var(--card-bg);
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.04);
}

.hero-laptop-wrapper img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
}

/* ---- Feature Badges ---- */
.feature-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.feature-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
    margin: 0 40px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-badge-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.feature-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-badge-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.feature-badge-text span {
    font-size: 0.85rem;
    color: #7a827e;
    font-style: italic;
}

/* ---- Games Section ---- */
.games-section {
    padding: 60px 0 80px;
}

.games-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.games-section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    letter-spacing: 3px;
}

.games-section-header h2 .header-line {
    height: 1px;
    width: 60px;
    background-color: var(--border-color);
}

.games-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

.games-gallery-viewport {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.games-gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 0;
    line-height: 1;
}

.gallery-arrow:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-arrow.prev-arrow {
    left: 0;
}

.gallery-arrow.next-arrow {
    right: 0;
}

.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.game-card-new {
    flex: 0 0 calc((100% - 40px) / 3);
    box-sizing: border-box;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 4px 8px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    border-color: #c0bcb1;
}

.game-card-thumb {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 4px;
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-new h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.game-card-new p {
    font-size: 0.8rem;
    color: #7a827e;
    line-height: 1.5;
    margin: 0;
}

/* ---- Leaderboard CTA Banner ---- */
.leaderboard-cta {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 48px 56px;
    margin: 20px 0 60px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: inset 0 0 0 4px var(--bg-color), inset 0 0 0 5px var(--border-color);
}

.cta-trophy {
    flex-shrink: 0;
}

.cta-trophy img {
    width: 80px;
    height: 80px;
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.cta-text p {
    font-size: 0.95rem;
    color: #5a6460;
    margin: 0;
    line-height: 1.5;
}

.cta-right {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    margin-left: -12px;
    object-fit: cover;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.cta-community {
    text-align: right;
}

.cta-community p {
    font-size: 0.85rem;
    color: #5a6460;
    margin: 0 0 8px;
    line-height: 1.4;
}

.btn-register-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-register-cta:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .game-card-new {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        margin: 0;
    }

    .hero-text h1:not(.hero-tagline) {
        font-size: 3rem;
    }

    .hero-text p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .feature-badges {
        flex-direction: column;
        gap: 24px;
    }

    .feature-divider {
        width: 100px;
        height: 1px;
        margin: 0;
    }

    .leaderboard-cta {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .cta-right {
        flex-direction: column;
    }
    
    .cta-community {
        text-align: center;
    }

    .game-card-new {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 576px) {
    .hero-text h1:not(.hero-tagline) {
        font-size: 2.2rem;
    }

    .game-card-new {
        flex: 0 0 100%;
    }

    .leaderboard-cta {
        padding: 24px 20px;
    }

    .games-section {
        padding: 36px 0;
    }
}
