/**
 * Pinay Casino - Main Stylesheet
 * All classes use v773- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --v773-primary: #008000;
    --v773-primary-light: #00FF7F;
    --v773-secondary: #2C3E50;
    --v773-accent: #9AFF9A;
    --v773-warning: #FFCCCB;
    --v773-bg-primary: #1a1a1a;
    --v773-bg-secondary: #2d2d2d;
    --v773-bg-card: #404040;
    --v773-text-primary: #ffffff;
    --v773-text-secondary: #9AFF9A;
    --v773-text-muted: #cccccc;
    --v773-border: #444444;
    --v773-shadow: rgba(0, 0, 0, 0.3);
    --v773-gradient: linear-gradient(135deg, var(--v773-primary) 0%, var(--v773-primary-light) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v773-text-primary);
    background-color: var(--v773-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container and Layout */
.v773-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.v773-wrapper {
    padding: 2rem 0;
}

.v773-grid {
    display: grid;
    gap: 1.5rem;
}

.v773-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.v773-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.v773-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.v773-flex {
    display: flex;
}

.v773-flex-center {
    align-items: center;
    justify-content: center;
}

.v773-flex-between {
    justify-content: space-between;
}

.v773-flex-wrap {
    flex-wrap: wrap;
}

/* Header Styles */
.v773-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--v773-secondary);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--v773-primary);
}

.v773-header-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v773-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v773-text-primary);
}

.v773-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.8rem;
}

.v773-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--v773-primary-light);
}

.v773-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.v773-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--v773-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.v773-menu-toggle:hover {
    background-color: var(--v773-primary);
}

.v773-menu-toggle.v773-menu-active {
    background-color: var(--v773-primary);
}

/* Navigation Styles */
.v773-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v773-nav-link {
    text-decoration: none;
    color: var(--v773-text-primary);
    padding: 0.8rem 1.6rem;
    border-radius: 2.4rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.v773-nav-link:hover {
    background-color: var(--v773-primary);
    color: var(--v773-text-primary);
    transform: translateY(-2px);
}

.v773-nav-link.v773-active {
    background-color: var(--v773-primary);
    border-color: var(--v773-primary-light);
}

/* Mobile Menu */
.v773-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--v773-secondary);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.v773-mobile-menu.v773-menu-open {
    left: 0;
}

.v773-mobile-menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--v773-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v773-mobile-menu-close {
    background: none;
    border: none;
    color: var(--v773-text-primary);
    font-size: 2.8rem;
    cursor: pointer;
}

.v773-mobile-menu-nav {
    padding: 1rem 0;
}

.v773-mobile-menu-link {
    display: block;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: var(--v773-text-primary);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.v773-mobile-menu-link:hover {
    background-color: var(--v773-bg-card);
    border-left-color: var(--v773-primary);
}

/* Mobile Menu Overlay */
.v773-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v773-menu-overlay.v773-active {
    opacity: 1;
    visibility: visible;
}

/* Button Styles */
.v773-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 2.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.v773-btn-primary {
    background: var(--v773-gradient);
    color: var(--v773-bg-primary);
    border: 2px solid var(--v773-primary);
}

.v773-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.8rem 1.6rem var(--v773-shadow);
}

.v773-btn-secondary {
    background: transparent;
    color: var(--v773-primary-light);
    border: 2px solid var(--v773-primary-light);
}

.v773-btn-secondary:hover {
    background: var(--v773-primary-light);
    color: var(--v773-bg-primary);
}

.v773-btn-outline {
    background: transparent;
    color: var(--v773-text-primary);
    border: 2px solid var(--v773-border);
}

.v773-btn-outline:hover {
    border-color: var(--v773-primary);
    color: var(--v773-primary-light);
}

/* Touch feedback for mobile */
.v773-btn:active,
.v773-touch-active {
    transform: scale(0.95);
}

/* Card Styles */
.v773-card {
    background: var(--v773-bg-card);
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: 0 0.4rem 0.8rem var(--v773-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--v773-border);
}

.v773-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.8rem 1.6rem var(--v773-shadow);
}

/* Carousel Styles */
.v773-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.v773-carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.v773-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v773-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.v773-carousel-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v773-carousel-indicator.v773-active {
    background: var(--v773-primary-light);
    transform: scale(1.2);
}

/* Game Grid Styles */
.v773-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v773-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--v773-text-primary);
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 1.2rem;
    background: var(--v773-bg-card);
    border: 1px solid var(--v773-border);
}

.v773-game-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.8rem 1.6rem var(--v773-shadow);
    border-color: var(--v773-primary);
}

.v773-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    object-fit: cover;
    margin-bottom: 0.8rem;
    background: var(--v773-bg-secondary);
}

.v773-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: var(--v773-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Game Category Styles */
.v773-category-section {
    margin-bottom: 3rem;
}

.v773-category-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--v773-primary-light);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* Content Sections */
.v773-section {
    margin-bottom: 3rem;
}

.v773-section-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--v773-primary-light);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    position: relative;
}

.v773-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.4rem;
    background: var(--v773-gradient);
    border-radius: 0.2rem;
}

.v773-content {
    background: var(--v773-bg-card);
    padding: 2rem;
    border-radius: 1.2rem;
    box-shadow: 0 0.4rem 0.8rem var(--v773-shadow);
    border: 1px solid var(--v773-border);
    margin-bottom: 2rem;
}

.v773-content h2 {
    font-size: 2rem;
    color: var(--v773-primary-light);
    margin-bottom: 1.5rem;
}

.v773-content h3 {
    font-size: 1.8rem;
    color: var(--v773-accent);
    margin-bottom: 1rem;
}

.v773-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--v773-text-secondary);
}

.v773-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.v773-content li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--v773-border);
    position: relative;
    padding-left: 2rem;
}

.v773-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--v773-primary-light);
    font-size: 1rem;
}

.v773-content li:last-child {
    border-bottom: none;
}

/* Footer Styles */
.v773-footer {
    background: var(--v773-secondary);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 2px solid var(--v773-primary);
}

.v773-footer-content {
    margin-bottom: 2rem;
}

.v773-footer-section {
    margin-bottom: 2rem;
}

.v773-footer-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--v773-primary-light);
    margin-bottom: 1rem;
}

.v773-footer-links {
    list-style: none;
}

.v773-footer-link {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--v773-text-secondary);
    transition: color 0.3s ease;
}

.v773-footer-link:hover {
    color: var(--v773-primary-light);
}

.v773-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.v773-partner-logo {
    width: 6rem;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v773-partner-logo:hover {
    opacity: 1;
}

.v773-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--v773-border);
    color: var(--v773-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.v773-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v773-secondary);
    z-index: 1000;
    display: none;
    border-top: 2px solid var(--v773-primary);
    box-shadow: 0 -0.4rem 0.8rem var(--v773-shadow);
}

.v773-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
}

.v773-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--v773-text-primary);
    min-width: 6rem;
    min-height: 6rem;
    transition: all 0.3s ease;
    position: relative;
}

.v773-bottom-nav-item:hover {
    background: var(--v773-bg-card);
    color: var(--v773-primary-light);
}

.v773-bottom-nav-item.v773-active {
    color: var(--v773-primary-light);
}

.v773-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v773-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Status Message */
.v773-status-message {
    position: fixed;
    top: 8rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--v773-primary);
    color: var(--v773-text-primary);
    padding: 1rem 2rem;
    border-radius: 2.4rem;
    font-size: 1.4rem;
    font-weight: 500;
    z-index: 10000;
    display: none;
    box-shadow: 0 0.8rem 1.6rem var(--v773-shadow);
    min-width: 20rem;
    text-align: center;
}

.v773-status-success {
    background: var(--v773-primary);
}

.v773-status-error {
    background: #e74c3c;
}

.v773-status-info {
    background: var(--v773-secondary);
}

/* Animations */
.v773-animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease;
}

.v773-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy Loading */
.v773-lazy-loading {
    background: var(--v773-bg-secondary);
    opacity: 0.5;
}

.v773-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v773-nav {
        display: none;
    }

    .v773-menu-toggle {
        display: block;
    }

    .v773-bottom-nav {
        display: block;
    }

    main {
        padding-bottom: 8rem;
    }

    .v773-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v773-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .v773-header-actions {
        gap: 0.5rem;
    }

    .v773-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .v773-container {
        padding: 0 0.8rem;
    }

    .v773-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .v773-section-title {
        font-size: 2.2rem;
    }

    .v773-category-title {
        font-size: 2rem;
    }

    .v773-content {
        padding: 1.5rem;
    }

    .v773-footer {
        padding: 2rem 0 1.5rem;
    }
}

/* Print Styles */
@media print {
    .v773-header,
    .v773-bottom-nav,
    .v773-carousel,
    .v773-btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .v773-content {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --v773-border: #ffffff;
        --v773-text-muted: #ffffff;
    }

    .v773-btn,
    .v773-card,
    .v773-content {
        border: 2px solid var(--v773-text-primary);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}