/**
 * Ace Super - Core Stylesheet
 * All classes use prefix "v2d5-" for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --v2d5-primary: #CD5C5C;
    --v2d5-secondary: #FFC0CB;
    --v2d5-bg-dark: #333333;
    --v2d5-bg-darker: #1a1a1a;
    --v2d5-bg-card: #2a2a2a;
    --v2d5-text-light: #ffffff;
    --v2d5-text-muted: #b0b0b0;
    --v2d5-accent: #FFD700;
    --v2d5-success: #4CAF50;
    --v2d5-gradient: linear-gradient(135deg, #CD5C5C 0%, #FFC0CB 100%);
    --v2d5-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v2d5-radius: 8px;
    --v2d5-radius-lg: 16px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v2d5-bg-dark);
    color: var(--v2d5-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    color: var(--v2d5-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--v2d5-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.v2d5-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.v2d5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v2d5-bg-darker) 0%, rgba(26, 26, 26, 0.95) 100%);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 192, 203, 0.1);
}

.v2d5-header-scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--v2d5-shadow);
}

.v2d5-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.v2d5-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v2d5-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.v2d5-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--v2d5-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2d5-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v2d5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--v2d5-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.v2d5-btn-primary {
    background: var(--v2d5-gradient);
    color: var(--v2d5-bg-dark);
}

.v2d5-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(205, 92, 92, 0.4);
}

.v2d5-btn-outline {
    background: transparent;
    color: var(--v2d5-secondary);
    border: 2px solid var(--v2d5-secondary);
}

.v2d5-btn-outline:hover {
    background: var(--v2d5-secondary);
    color: var(--v2d5-bg-dark);
}

.v2d5-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.v2d5-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--v2d5-secondary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.v2d5-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v2d5-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.v2d5-menu-active {
    right: 0;
}

.v2d5-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 192, 203, 0.2);
}

.v2d5-menu-close {
    background: transparent;
    border: none;
    color: var(--v2d5-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.v2d5-menu-nav {
    list-style: none;
}

.v2d5-menu-nav li {
    margin-bottom: 0.5rem;
}

.v2d5-menu-nav a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--v2d5-text-light);
    font-size: 1.4rem;
    border-radius: var(--v2d5-radius);
    transition: all 0.3s ease;
}

.v2d5-menu-nav a:hover {
    background: rgba(255, 192, 203, 0.1);
    color: var(--v2d5-secondary);
}

.v2d5-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v2d5-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.v2d5-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel/Slider */
.v2d5-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 var(--v2d5-radius-lg) var(--v2d5-radius-lg);
}

.v2d5-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v2d5-slide-active {
    opacity: 1;
}

.v2d5-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2d5-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v2d5-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v2d5-carousel-dot:hover,
.v2d5-carousel-dot-active {
    background: var(--v2d5-secondary);
}

/* Sections */
.v2d5-section {
    padding: 2rem 0;
}

.v2d5-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--v2d5-text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v2d5-section-title i {
    color: var(--v2d5-primary);
}

/* Game Grid */
.v2d5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v2d5-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.v2d5-game-item:hover {
    transform: translateY(-5px);
}

.v2d5-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v2d5-radius);
    overflow: hidden;
    background: var(--v2d5-bg-card);
    margin-bottom: 0.5rem;
}

.v2d5-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.v2d5-game-item:hover .v2d5-game-img img {
    transform: scale(1.1);
}

.v2d5-game-name {
    font-size: 1.1rem;
    color: var(--v2d5-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cards */
.v2d5-card {
    background: var(--v2d5-bg-card);
    border-radius: var(--v2d5-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 192, 203, 0.1);
}

.v2d5-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v2d5-secondary);
}

.v2d5-card-content {
    font-size: 1.3rem;
    color: var(--v2d5-text-muted);
    line-height: 1.8;
}

/* Promo Banner */
.v2d5-promo-banner {
    background: var(--v2d5-gradient);
    border-radius: var(--v2d5-radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
}

.v2d5-promo-banner h3 {
    font-size: 1.8rem;
    color: var(--v2d5-bg-dark);
    margin-bottom: 0.5rem;
}

.v2d5-promo-banner p {
    font-size: 1.3rem;
    color: var(--v2d5-bg-darker);
    margin-bottom: 1rem;
}

/* Features Grid */
.v2d5-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v2d5-feature-item {
    background: var(--v2d5-bg-card);
    border-radius: var(--v2d5-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 192, 203, 0.1);
    transition: all 0.3s ease;
}

.v2d5-feature-item:hover {
    border-color: var(--v2d5-primary);
    transform: translateY(-3px);
}

.v2d5-feature-icon {
    font-size: 2.8rem;
    color: var(--v2d5-primary);
    margin-bottom: 0.8rem;
}

.v2d5-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v2d5-text-light);
    margin-bottom: 0.5rem;
}

.v2d5-feature-desc {
    font-size: 1.1rem;
    color: var(--v2d5-text-muted);
}

/* FAQ */
.v2d5-faq-item {
    background: var(--v2d5-bg-card);
    border-radius: var(--v2d5-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.v2d5-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--v2d5-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v2d5-faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--v2d5-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Footer */
.v2d5-footer {
    background: var(--v2d5-bg-darker);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 192, 203, 0.1);
}

.v2d5-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v2d5-footer-links a {
    font-size: 1.2rem;
    color: var(--v2d5-text-muted);
}

.v2d5-footer-links a:hover {
    color: var(--v2d5-secondary);
}

.v2d5-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v2d5-partners img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v2d5-partners img:hover {
    opacity: 1;
}

.v2d5-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v2d5-text-muted);
}

/* Mobile Bottom Navigation */
.v2d5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.98) 0%, rgba(26, 26, 26, 0.99) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 192, 203, 0.15);
    backdrop-filter: blur(10px);
}

.v2d5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.5rem;
}

.v2d5-nav-item:hover {
    background: rgba(255, 192, 203, 0.1);
}

.v2d5-nav-item.active {
    background: rgba(205, 92, 92, 0.2);
}

.v2d5-nav-item i,
.v2d5-nav-item .material-icons {
    font-size: 24px;
    color: var(--v2d5-text-muted);
    transition: all 0.3s ease;
}

.v2d5-nav-item:hover i,
.v2d5-nav-item:hover .material-icons,
.v2d5-nav-item.active i,
.v2d5-nav-item.active .material-icons {
    color: var(--v2d5-secondary);
    transform: scale(1.1);
}

.v2d5-nav-item span {
    font-size: 10px;
    color: var(--v2d5-text-muted);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.v2d5-nav-item:hover span,
.v2d5-nav-item.active span {
    color: var(--v2d5-secondary);
}

/* RTP Table */
.v2d5-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.v2d5-rtp-table th,
.v2d5-rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 192, 203, 0.1);
}

.v2d5-rtp-table th {
    color: var(--v2d5-secondary);
    font-weight: 600;
}

.v2d5-rtp-table td {
    color: var(--v2d5-text-muted);
}

.v2d5-rtp-high {
    color: var(--v2d5-success);
    font-weight: 600;
}

/* Utility Classes */
.v2d5-text-center { text-align: center; }
.v2d5-text-gradient {
    background: var(--v2d5-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v2d5-mb-1 { margin-bottom: 1rem; }
.v2d5-mb-2 { margin-bottom: 2rem; }
.v2d5-mt-1 { margin-top: 1rem; }
.v2d5-mt-2 { margin-top: 2rem; }

/* Desktop Styles */
@media (min-width: 769px) {
    .v2d5-bottom-nav {
        display: none;
    }

    .v2d5-main {
        padding-bottom: 2rem;
    }

    .v2d5-container {
        max-width: 1200px;
    }

    .v2d5-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .v2d5-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .v2d5-header-inner {
        max-width: 1200px;
    }

    .v2d5-menu-toggle {
        display: none;
    }

    .v2d5-carousel {
        height: 400px;
    }
}

/* Animation */
@keyframes v2d5-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.v2d5-animate-pulse {
    animation: v2d5-pulse 2s infinite;
}
