/**
 * BYU777 - Core Stylesheet
 * Website: byu777.click
 * All classes use v24a- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --v24a-primary: #B22222;
    --v24a-primary-dark: #8B0000;
    --v24a-secondary: #CD5C5C;
    --v24a-bg: #1C2833;
    --v24a-bg-light: #2C3E50;
    --v24a-bg-card: #273746;
    --v24a-text: #E0F2F1;
    --v24a-text-muted: #95A5A6;
    --v24a-accent: #B22222;
    --v24a-success: #27AE60;
    --v24a-warning: #F39C12;
    --v24a-danger: #E74C3C;
    --v24a-radius-sm: 6px;
    --v24a-radius-md: 10px;
    --v24a-radius-lg: 16px;
    --v24a-shadow: 0 4px 12px rgba(0,0,0,0.3);
    --v24a-transition: all 0.3s ease;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v24a-text);
    background: var(--v24a-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.v24a-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.v24a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v24a-bg) 0%, rgba(28,40,51,0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(178,34,34,0.3);
}

.v24a-header-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.v24a-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v24a-text);
}

.v24a-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--v24a-radius-sm);
}

.v24a-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v24a-primary);
    letter-spacing: 0.5px;
}

.v24a-header-btns {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Buttons */
.v24a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--v24a-radius-md);
    cursor: pointer;
    transition: var(--v24a-transition);
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}

.v24a-btn-primary {
    background: linear-gradient(135deg, var(--v24a-primary) 0%, var(--v24a-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(178,34,34,0.4);
}

.v24a-btn-primary:hover,
.v24a-btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178,34,34,0.5);
}

.v24a-btn-outline {
    background: transparent;
    color: var(--v24a-primary);
    border: 2px solid var(--v24a-primary);
}

.v24a-btn-outline:hover,
.v24a-btn-outline:active {
    background: var(--v24a-primary);
    color: white;
}

.v24a-btn-secondary {
    background: var(--v24a-bg-light);
    color: var(--v24a-text);
    border: 1px solid var(--v24a-secondary);
}

.v24a-btn-lg {
    padding: 1.4rem 2.4rem;
    font-size: 1.6rem;
}

.v24a-btn-block {
    width: 100%;
}

.v24a-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--v24a-bg-light);
    border: none;
    border-radius: var(--v24a-radius-sm);
    color: var(--v24a-text);
    cursor: pointer;
    font-size: 1.8rem;
}

/* Mobile Menu */
.v24a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v24a-transition);
}

.v24a-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v24a-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--v24a-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--v24a-primary);
}

.v24a-menu-active {
    right: 0;
}

.v24a-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(178,34,34,0.3);
}

.v24a-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v24a-bg-light);
    border: none;
    border-radius: var(--v24a-radius-sm);
    color: var(--v24a-text);
    cursor: pointer;
    font-size: 1.6rem;
}

.v24a-menu-nav {
    list-style: none;
    padding: 1rem 0;
}

.v24a-menu-nav li a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 1.5rem;
    color: var(--v24a-text);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--v24a-transition);
}

.v24a-menu-nav li a:hover {
    background: var(--v24a-bg-light);
    color: var(--v24a-primary);
}

.v24a-menu-nav li a i {
    width: 24px;
    text-align: center;
    color: var(--v24a-secondary);
}

/* Main Content */
.v24a-main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Carousel */
.v24a-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--v24a-radius-lg);
    margin-bottom: 2rem;
}

.v24a-carousel-inner {
    position: relative;
    width: 100%;
}

.v24a-carousel-slide {
    display: none;
    width: 100%;
}

.v24a-carousel-slide.v24a-carousel-active {
    display: block;
}

.v24a-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--v24a-radius-lg);
    cursor: pointer;
}

.v24a-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.v24a-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--v24a-text-muted);
    border: none;
    cursor: pointer;
    transition: var(--v24a-transition);
}

.v24a-dot-active {
    background: var(--v24a-primary);
    transform: scale(1.2);
}

/* Cards */
.v24a-card {
    background: var(--v24a-bg-card);
    border-radius: var(--v24a-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(178,34,34,0.2);
}

.v24a-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v24a-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v24a-card-title i {
    color: var(--v24a-primary);
}

.v24a-content-text {
    color: var(--v24a-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.v24a-content-text strong {
    color: var(--v24a-text);
}

/* Stats Grid */
.v24a-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v24a-stat-card {
    background: var(--v24a-bg-card);
    border-radius: var(--v24a-radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(178,34,34,0.2);
}

.v24a-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v24a-primary);
    margin-bottom: 0.4rem;
}

.v24a-stat-label {
    font-size: 1.1rem;
    color: var(--v24a-text-muted);
}

/* Game Grid */
.v24a-section {
    margin-bottom: 2.5rem;
}

.v24a-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.v24a-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v24a-text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v24a-section-title i {
    color: var(--v24a-primary);
}

.v24a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v24a-game-card {
    cursor: pointer;
    transition: var(--v24a-transition);
}

.v24a-game-card:hover {
    transform: translateY(-4px);
}

.v24a-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--v24a-radius-md);
    border: 2px solid transparent;
    transition: var(--v24a-transition);
}

.v24a-game-card:hover img {
    border-color: var(--v24a-primary);
}

.v24a-game-name {
    font-size: 1.1rem;
    color: var(--v24a-text-muted);
    text-align: center;
    margin-top: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature List */
.v24a-feature-list {
    list-style: none;
}

.v24a-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(149,165,166,0.2);
}

.v24a-feature-list li:last-child {
    border-bottom: none;
}

.v24a-feature-list li i {
    color: var(--v24a-primary);
    font-size: 1.6rem;
    min-width: 24px;
    margin-top: 0.2rem;
}

.v24a-feature-list li div {
    color: var(--v24a-text-muted);
    line-height: 1.6;
}

.v24a-feature-list li div strong {
    color: var(--v24a-text);
}

/* RTP Grid */
.v24a-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.v24a-rtp-item {
    background: var(--v24a-bg-light);
    border-radius: var(--v24a-radius-md);
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v24a-rtp-game {
    color: var(--v24a-text-muted);
    font-size: 1.3rem;
}

.v24a-rtp-value {
    color: var(--v24a-primary);
    font-weight: 700;
    font-size: 1.4rem;
}

/* CTA Banner */
.v24a-cta-banner {
    background: linear-gradient(135deg, var(--v24a-primary) 0%, var(--v24a-primary-dark) 100%);
    border-radius: var(--v24a-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.v24a-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.v24a-cta-text {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.v24a-cta-banner .v24a-btn {
    background: white;
    color: var(--v24a-primary);
}

/* Footer */
.v24a-footer {
    background: var(--v24a-bg);
    border-top: 1px solid rgba(178,34,34,0.3);
    padding: 2rem 0;
}

.v24a-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.v24a-footer-links a {
    color: var(--v24a-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--v24a-transition);
}

.v24a-footer-links a:hover {
    color: var(--v24a-primary);
}

.v24a-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.v24a-partners img {
    height: 24px;
    width: auto;
}

.v24a-footer-copy {
    text-align: center;
    color: var(--v24a-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.v24a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v24a-bg);
    border-top: 1px solid rgba(178,34,34,0.3);
}

.v24a-bottom-nav-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
}

.v24a-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    color: var(--v24a-text-muted);
    cursor: pointer;
    transition: var(--v24a-transition);
    min-width: 60px;
    min-height: 56px;
}

.v24a-bottom-btn:hover,
.v24a-bottom-btn.v24a-nav-active {
    color: var(--v24a-primary);
}

.v24a-bottom-btn i,
.v24a-bottom-btn .material-icons {
    font-size: 2.4rem;
}

.v24a-bottom-btn span {
    font-size: 1rem;
}

/* Touch Feedback */
.v24a-touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Accordion */
.v24a-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--v24a-bg-light);
    border-radius: var(--v24a-radius-md);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.v24a-accordion-icon {
    transition: transform 0.3s ease;
}

.v24a-icon-rotate {
    transform: rotate(180deg);
}

.v24a-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.v24a-accordion-open {
    max-height: 500px;
    padding: 1.5rem;
    background: var(--v24a-bg-card);
    border-radius: 0 0 var(--v24a-radius-md) var(--v24a-radius-md);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .v24a-main {
        padding-bottom: 80px;
    }

    .v24a-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v24a-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) {
    .v24a-bottom-nav {
        display: none;
    }

    .v24a-main {
        padding-bottom: 2rem;
    }
}

/* Utility Classes */
.v24a-text-center {
    text-align: center;
}

.v24a-mb-1 {
    margin-bottom: 1rem;
}

.v24a-mb-2 {
    margin-bottom: 2rem;
}

.v24a-mt-1 {
    margin-top: 1rem;
}

.v24a-mt-2 {
    margin-top: 2rem;
}
