/* Lucky Calico Mobile Gaming Platform - Core Styles */

/* CSS Custom Properties */
:root {
    --wf14f-primary: #ADD8E6;
    --wf14f-secondary: #1B263B;
    --wf14f-tertiary: #8FBC8F;
    --wf14f-bg-dark: #1B263B;
    --wf14f-bg-light: #ADD8E6;
    --wf14f-text-light: #ADD8E6;
    --wf14f-text-dark: #1B263B;
    --wf14f-accent: #6C757D;
    --wf14f-success: #8FBC8F;
    --wf14f-danger: #FF4444;
    --wf14f-warning: #FFA000;
    --wf14f-special: #87CEEB;
    --wf14f-gradient: linear-gradient(135deg, #ADD8E6 0%, #1B263B 50%, #8FBC8F 100%);
    --wf14f-gradient-alt: linear-gradient(45deg, #6C757D 0%, #87CEEB 50%, #ADD8E6 100%);
    --wf14f-shadow: 0 4px 8px rgba(0,0,0,0.15);
    --wf14f-shadow-lg: 0 8px 32px rgba(0,0,0,0.25);
    --wf14f-border-radius: 12px;
    --wf14f-border-radius-sm: 8px;
    --wf14f-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 62.5%;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--wf14f-text-light);
    background: var(--wf14f-bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.wf14f-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
    width: 100%;
}

.wf14f-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wf14f-main {
    flex: 1;
    padding-top: 7rem;
    padding-bottom: 8rem;
}

/* Typography */
.wf14f-text-center { text-align: center; }
.wf14f-text-left { text-align: left; }
.wf14f-text-right { text-align: right; }

.wf14f-font-bold { font-weight: 700; }
.wf14f-font-semibold { font-weight: 600; }
.wf14f-font-medium { font-weight: 500; }

.wf14f-text-primary { color: var(--wf14f-primary); }
.wf14f-text-secondary { color: var(--wf14f-secondary); }
.wf14f-text-accent { color: var(--wf14f-accent); }

/* Header and Navigation */
.wf14f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(173, 216, 230, 0.1);
}

.wf14f-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.6rem;
    height: 6.4rem;
}

.wf14f-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--wf14f-text-light);
    font-weight: 700;
    font-size: 1.8rem;
    gap: 0.8rem;
    transition: var(--wf14f-transition);
}

.wf14f-logo:hover {
    color: var(--wf14f-primary);
    transform: translateY(-1px);
}

.wf14f-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wf14f-gradient);
    box-shadow: var(--wf14f-shadow);
}

.wf14f-logo-icon img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: cover;
}

.wf14f-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wf14f-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: none;
    background: transparent;
    color: var(--wf14f-text-light);
    cursor: pointer;
    border-radius: var(--wf14f-border-radius-sm);
    transition: var(--wf14f-transition);
}

.wf14f-menu-toggle:hover {
    background: rgba(173, 216, 230, 0.1);
    color: var(--wf14f-primary);
    transform: scale(1.05);
}

/* Mobile Navigation */
.wf14f-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--wf14f-transition);
}

.wf14f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wf14f-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 32rem;
    height: 100%;
    background: var(--wf14f-bg-dark);
    z-index: 1002;
    padding: 2rem;
    overflow-y: auto;
    transition: var(--wf14f-transition);
    border-left: 2px solid var(--wf14f-primary);
}

.wf14f-menu-active {
    right: 0;
}

.wf14f-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(173, 216, 230, 0.2);
}

.wf14f-nav-close {
    width: 4rem;
    height: 4rem;
    border: none;
    background: transparent;
    color: var(--wf14f-text-light);
    cursor: pointer;
    border-radius: var(--wf14f-border-radius-sm);
    transition: var(--wf14f-transition);
}

.wf14f-nav-close:hover {
    background: rgba(173, 216, 230, 0.1);
    color: var(--wf14f-primary);
}

.wf14f-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wf14f-nav-item {
    margin-bottom: 0.8rem;
}

.wf14f-nav-link {
    display: flex;
    align-items: center;
    padding: 1.6rem;
    color: var(--wf14f-text-light);
    text-decoration: none;
    border-radius: var(--wf14f-border-radius-sm);
    transition: var(--wf14f-transition);
    font-weight: 500;
    gap: 1.2rem;
}

.wf14f-nav-link:hover {
    background: rgba(173, 216, 230, 0.1);
    color: var(--wf14f-primary);
    transform: translateX(4px);
}

.wf14f-nav-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(173, 216, 230, 0.2);
}

/* Buttons */
.wf14f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: var(--wf14f-border-radius-sm);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--wf14f-transition);
    min-height: 4.8rem;
    gap: 0.8rem;
    white-space: nowrap;
}

.wf14f-btn-primary {
    background: var(--wf14f-gradient);
    color: white;
    box-shadow: var(--wf14f-shadow);
}

.wf14f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--wf14f-shadow-lg);
}

.wf14f-btn-secondary {
    background: transparent;
    color: var(--wf14f-primary);
    border: 2px solid var(--wf14f-primary);
}

.wf14f-btn-secondary:hover {
    background: var(--wf14f-primary);
    color: var(--wf14f-bg-dark);
}

.wf14f-btn-accent {
    background: var(--wf14f-accent);
    color: var(--wf14f-text-light);
    font-weight: 700;
}

.wf14f-btn-accent:hover {
    background: var(--wf14f-tertiary);
    color: var(--wf14f-text-dark);
    transform: translateY(-2px);
}

.wf14f-btn-lg {
    padding: 1.6rem 3.2rem;
    font-size: 1.6rem;
    min-height: 5.6rem;
}

.wf14f-btn-sm {
    padding: 0.8rem 1.6rem;
    font-size: 1.2rem;
    min-height: 3.6rem;
}

/* Hero Section */
.wf14f-hero {
    padding: 4rem 0 6rem;
    text-align: center;
    background: var(--wf14f-gradient);
    position: relative;
    overflow: hidden;
}

.wf14f-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.wf14f-hero-content {
    position: relative;
    z-index: 2;
}

.wf14f-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.6rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.wf14f-hero-text {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3.2rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.wf14f-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-content: center;
    margin-top: 2.4rem;
}

/* Sections */
.wf14f-section {
    padding: 4rem 0;
}

.wf14f-section-alt {
    background: rgba(173, 216, 230, 0.05);
}

.wf14f-section-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--wf14f-primary);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.wf14f-section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--wf14f-text-light);
}

/* Cards */
.wf14f-card {
    background: rgba(173, 216, 230, 0.08);
    border-radius: var(--wf14f-border-radius);
    padding: 2.4rem;
    border: 1px solid rgba(173, 216, 230, 0.15);
    transition: var(--wf14f-transition);
    backdrop-filter: blur(8px);
}

.wf14f-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wf14f-shadow-lg);
    border-color: var(--wf14f-primary);
}

/* Game Grid */
.wf14f-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.6rem;
    margin-top: 2.4rem;
}

.wf14f-game-card {
    background: rgba(27, 38, 59, 0.8);
    border-radius: var(--wf14f-border-radius);
    overflow: hidden;
    transition: var(--wf14f-transition);
    border: 1px solid rgba(173, 216, 230, 0.1);
    cursor: pointer;
}

.wf14f-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wf14f-shadow-lg);
    border-color: var(--wf14f-primary);
}

.wf14f-game-img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: var(--wf14f-transition);
}

.wf14f-game-card:hover .wf14f-game-img {
    transform: scale(1.05);
}

.wf14f-game-info {
    padding: 1.6rem;
}

.wf14f-game-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wf14f-text-light);
    margin-bottom: 0.8rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.wf14f-game-type {
    font-size: 1.2rem;
    color: var(--wf14f-primary);
    background: rgba(173, 216, 230, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: var(--wf14f-border-radius-sm);
    text-transform: uppercase;
    font-weight: 600;
}

/* Carousel */
.wf14f-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--wf14f-border-radius);
    margin: 2rem 0;
    background: var(--wf14f-bg-dark);
}

.wf14f-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf14f-carousel-slide {
    flex: 0 0 100%;
    position: relative;
    cursor: pointer;
}

.wf14f-carousel-img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.wf14f-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.6rem;
    background: rgba(27, 38, 59, 0.7);
}

.wf14f-carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(173, 216, 230, 0.3);
    cursor: pointer;
    transition: var(--wf14f-transition);
}

.wf14f-carousel-dot.active {
    background: var(--wf14f-primary);
    transform: scale(1.2);
}

/* Features Grid */
.wf14f-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2.4rem;
    margin-top: 3rem;
}

.wf14f-feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(173, 216, 230, 0.05);
    border-radius: var(--wf14f-border-radius);
    border: 1px solid rgba(173, 216, 230, 0.1);
    transition: var(--wf14f-transition);
}

.wf14f-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wf14f-shadow-lg);
    border-color: var(--wf14f-primary);
}

.wf14f-feature-icon {
    font-size: 4rem;
    margin-bottom: 1.6rem;
    display: block;
}

.wf14f-feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--wf14f-primary);
    margin-bottom: 1.2rem;
}

.wf14f-feature-text {
    font-size: 1.4rem;
    color: var(--wf14f-text-light);
    line-height: 1.5;
}

/* Bottom Navigation */
.wf14f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(173, 216, 230, 0.1);
    z-index: 999;
    padding: 0.8rem 0;
}

.wf14f-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wf14f-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--wf14f-text-light);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem;
    border-radius: var(--wf14f-border-radius-sm);
    transition: var(--wf14f-transition);
    min-width: 5rem;
    text-align: center;
}

.wf14f-bottom-nav-item:hover,
.wf14f-bottom-nav-item.active {
    color: var(--wf14f-primary);
    background: rgba(173, 216, 230, 0.1);
    transform: translateY(-2px);
}

.wf14f-bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.wf14f-bottom-nav-text {
    font-size: 1rem;
    line-height: 1.2;
}

/* Footer */
.wf14f-footer {
    background: rgba(27, 38, 59, 0.95);
    padding: 4rem 0 2rem;
    margin-bottom: 6rem;
    border-top: 1px solid rgba(173, 216, 230, 0.1);
}

.wf14f-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.wf14f-footer-section h3 {
    color: var(--wf14f-primary);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
}

.wf14f-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wf14f-footer-links li {
    margin-bottom: 0.8rem;
}

.wf14f-footer-links a {
    color: var(--wf14f-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--wf14f-transition);
}

.wf14f-footer-links a:hover {
    color: var(--wf14f-primary);
}

.wf14f-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.wf14f-partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.6;
    transition: var(--wf14f-transition);
}

.wf14f-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.wf14f-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(173, 216, 230, 0.1);
    color: rgba(173, 216, 230, 0.8);
    font-size: 1.2rem;
}

/* Utility Classes */
.wf14f-no-scroll { overflow: hidden; }
.wf14f-hidden { display: none; }
.wf14f-sr-only { 
    position: absolute; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0,0,0,0); 
    border: 0; 
}

/* Loading Animation */
.wf14f-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--wf14f-bg-dark);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wf14f-spinner {
    width: 4rem;
    height: 4rem;
    border: 0.4rem solid rgba(173, 216, 230, 0.2);
    border-left: 0.4rem solid var(--wf14f-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .wf14f-container {
        padding: 0 1.2rem;
    }
    
    .wf14f-nav {
        padding: 1rem 1.2rem;
    }
    
    .wf14f-hero-title {
        font-size: 2.4rem;
    }
    
    .wf14f-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .wf14f-btn {
        width: 100%;
        max-width: 28rem;
    }
    
    .wf14f-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
        gap: 1.2rem;
    }
    
    .wf14f-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 320px) {
    .wf14f-mobile-nav {
        width: 28rem;
    }
    
    .wf14f-bottom-nav-text {
        font-size: 0.9rem;
    }
}