/**
 * Fair Play Cast - Core Stylesheet
 * Prefix: v377-
 * Color Palette: #7FFF00 | #66CDAA | #2C3E50 | #9AFF9A
 */

/* CSS Variables */
:root {
    --v377-primary: #7FFF00;
    --v377-secondary: #66CDAA;
    --v377-bg: #2C3E50;
    --v377-bg-light: #34495E;
    --v377-text: #9AFF9A;
    --v377-text-light: #FFFFFF;
    --v377-accent: #7FFF00;
    --v377-border: #66CDAA;
    --v377-shadow: rgba(0, 0, 0, 0.3);
    --v377-gradient: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    --v377-header-height: 60px;
    --v377-bottom-nav-height: 60px;
    --v377-radius: 8px;
    --v377-radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--v377-bg);
    color: var(--v377-text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.v377-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v377-wrapper {
    width: 100%;
    padding: 1.5rem;
}

/* Header */
.v377-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v377-header-height);
    background: var(--v377-bg);
    border-bottom: 1px solid var(--v377-border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.v377-header-scrolled {
    box-shadow: 0 2px 10px var(--v377-shadow);
}

.v377-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v377-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v377-text-light);
}

.v377-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.v377-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v377-primary);
}

.v377-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v377-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--v377-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
}

.v377-btn-primary {
    background: var(--v377-primary);
    color: var(--v377-bg);
}

.v377-btn-primary:hover {
    background: #66CDAA;
    transform: translateY(-2px);
}

.v377-btn-outline {
    background: transparent;
    color: var(--v377-primary);
    border: 2px solid var(--v377-primary);
}

.v377-btn-outline:hover {
    background: var(--v377-primary);
    color: var(--v377-bg);
}

.v377-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.v377-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--v377-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.v377-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v377-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.v377-menu-open {
    right: 0;
}

.v377-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: all 0.3s ease;
}

.v377-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.v377-nav-list {
    list-style: none;
    margin-top: 2rem;
}

.v377-nav-item {
    border-bottom: 1px solid var(--v377-border);
}

.v377-nav-link {
    display: block;
    padding: 1.5rem 1rem;
    color: var(--v377-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.v377-nav-link:hover {
    color: var(--v377-primary);
}

/* Main Content */
.v377-main {
    padding-top: var(--v377-header-height);
    padding-bottom: calc(var(--v377-bottom-nav-height) + 2rem);
    min-height: 100vh;
}

@media (max-width: 768px) {
    .v377-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.v377-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--v377-radius-lg);
}

.v377-slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.v377-slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.v377-slide-active {
    opacity: 1;
    z-index: 1;
}

.v377-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.v377-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v377-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.v377-dot-active {
    background: var(--v377-primary);
}

/* Game Grid */
.v377-game-section {
    padding: 2rem 0;
}

.v377-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v377-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.v377-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v377-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.v377-game-item:hover {
    transform: scale(1.05);
}

.v377-game-img {
    width: 70px;
    height: 70px;
    border-radius: var(--v377-radius);
    object-fit: cover;
    border: 2px solid var(--v377-border);
    margin-bottom: 0.5rem;
}

.v377-game-name {
    font-size: 1.1rem;
    color: var(--v377-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80px;
}

/* Cards */
.v377-card {
    background: var(--v377-bg-light);
    border-radius: var(--v377-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--v377-border);
}

.v377-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v377-primary);
    margin-bottom: 1rem;
}

.v377-card-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--v377-text);
}

/* Promo Link Styles */
.v377-promo-link {
    color: var(--v377-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v377-promo-link:hover {
    color: var(--v377-secondary);
    text-decoration: underline;
}

.v377-promo-btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background: linear-gradient(135deg, var(--v377-primary), var(--v377-secondary));
    color: var(--v377-bg);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--v377-radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.v377-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(127, 255, 0, 0.4);
}

/* Bottom Navigation */
.v377-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--v377-bottom-nav-height);
    background: linear-gradient(180deg, #2C3E50 0%, #1a252f 100%);
    border-top: 2px solid var(--v377-primary);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .v377-bottom-nav {
        display: none;
    }
}

.v377-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--v377-text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v377-nav-btn:hover,
.v377-nav-btn-active {
    color: var(--v377-primary);
    transform: scale(1.1);
}

.v377-nav-btn i,
.v377-nav-btn .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.v377-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.v377-footer {
    background: var(--v377-bg-light);
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--v377-border);
}

@media (min-width: 769px) {
    .v377-footer {
        padding-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .v377-footer {
        padding-bottom: calc(var(--v377-bottom-nav-height) + 3rem);
    }
}

.v377-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.v377-footer-desc {
    font-size: 1.3rem;
    color: var(--v377-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.v377-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.v377-footer-link {
    color: var(--v377-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: var(--v377-radius);
    transition: all 0.3s ease;
}

.v377-footer-link:hover {
    background: var(--v377-primary);
    color: var(--v377-bg);
}

.v377-promo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.v377-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v377-text);
    border-top: 1px solid var(--v377-border);
    padding-top: 1.5rem;
}

/* Feature List */
.v377-feature-list {
    list-style: none;
}

.v377-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--v377-border);
}

.v377-feature-item:last-child {
    border-bottom: none;
}

.v377-feature-icon {
    color: var(--v377-primary);
    font-size: 2rem;
    min-width: 30px;
}

.v377-feature-content h4 {
    font-size: 1.4rem;
    color: var(--v377-primary);
    margin-bottom: 0.5rem;
}

.v377-feature-content p {
    font-size: 1.3rem;
    color: var(--v377-text);
}

/* Testimonials */
.v377-testimonials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.v377-testimonial {
    background: var(--v377-bg);
    border-radius: var(--v377-radius);
    padding: 1.5rem;
    border-left: 4px solid var(--v377-primary);
}

.v377-testimonial-text {
    font-size: 1.3rem;
    color: var(--v377-text);
    font-style: italic;
    margin-bottom: 1rem;
}

.v377-testimonial-author {
    font-size: 1.2rem;
    color: var(--v377-primary);
    font-weight: 600;
}

/* Payment Methods */
.v377-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.v377-payment-item {
    background: var(--v377-bg);
    border: 1px solid var(--v377-border);
    border-radius: var(--v377-radius);
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    color: var(--v377-text-light);
}

/* Winners Showcase */
.v377-winners-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v377-winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--v377-bg);
    border-radius: var(--v377-radius);
    padding: 1rem;
}

.v377-winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--v377-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--v377-bg);
}

.v377-winner-info {
    flex: 1;
}

.v377-winner-name {
    font-size: 1.3rem;
    color: var(--v377-text-light);
    font-weight: 600;
}

.v377-winner-game {
    font-size: 1.1rem;
    color: var(--v377-text);
}

.v377-winner-amount {
    font-size: 1.4rem;
    color: var(--v377-primary);
    font-weight: 700;
}

/* Utility Classes */
.v377-text-center { text-align: center; }
.v377-mt-1 { margin-top: 1rem; }
.v377-mt-2 { margin-top: 2rem; }
.v377-mb-1 { margin-bottom: 1rem; }
.v377-mb-2 { margin-bottom: 2rem; }
.v377-hidden { display: none; }

/* Responsive */
@media (min-width: 769px) {
    .v377-container {
        max-width: 800px;
    }

    .v377-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .v377-carousel {
        height: 300px;
    }
}

/* Touch feedback */
.v377-touch-target {
    -webkit-tap-highlight-color: transparent;
}

.v377-touch-active {
    opacity: 0.7;
}
