/* === HUB MAIN STYLING === */

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    color: #333;
    -webkit-tap-highlight-color: transparent;
}

/* === HEADER SECTION === */
.hub-header {
    text-align: center;
    margin-bottom: 30px;
}

.hub-title {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -1px;
}

.title-kids {
    color: #4ecdc4;
}

.title-games {
    color: #45b7d1;
}

.hub-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 10px 0 0 0;
    font-weight: 400;
}

/* === COLLECTION SECTION === */
.collection-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.collection-card {
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 280px;
}

.collection-title {
    color: #444;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.collection-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.trophy-icon {
    font-size: 2rem;
}

.sticker-count {
    color: #4ecdc4;
    font-size: 1.2rem;
    font-weight: 600;
}

/* === GAMES SECTION === */
/* === ADD THIS TO YOUR GAMES SECTION RULE === */
.games-section {
    margin-bottom: 40px;
    position: relative; /* ADD THIS LINE - For floating sticker positioning */
}



.games-title {
    text-align: center;
    color: #444;
    font-size: 1.8rem;
    margin: 0 0 30px 0;
    font-weight: 600;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === GAME CARDS === */
.game-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* === BIG TOUCH TARGET === */
    min-width: 120px;
    min-height: 120px;
}

/* === ACTIVE GAME CARD === */
.game-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

.game-card.active:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* === INACTIVE GAME CARD === */
.game-card.inactive {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.game-card.inactive:hover {
    background: #dee2e6;
}

/* === GAME CARD CONTENT === */
.game-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

.game-name {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.game-description {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* === PLAY INDICATOR === */
.play-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === FOOTER === */
.hub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.session-info {
    color: #666;
    font-size: 1rem;
}

.footer-controls {
    display: flex;
    gap: 15px;
}

.control-button {
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* === BIG TOUCH TARGET === */
    min-width: 80px;
    min-height: 80px;
}

.control-button:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.control-button:active {
    transform: scale(0.95);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .hub-title {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .game-card {
        min-height: 140px;
        padding: 25px;
    }
    
    .hub-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-controls {
        justify-content: center;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
/* === ADD ALL OF THIS AT THE END OF YOUR FILE === */

/* === FLOATING STICKERS === */
.floating-stickers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none; /* Allow clicks through to games below */
    z-index: 50;
}

.floating-sticker {
    position: absolute;
    pointer-events: all; /* Re-enable clicks on stickers */
    cursor: pointer;
    z-index: 51;
}

/* === FLOATING STICKER POSITIONS - MOVED INWARD === */
.left-sticker {
    left: 10px;  /* Changed from -40px */
    top: 20%;
    animation: float-gentle 4s ease-in-out infinite;
}

.right-sticker-1 {
    right: 10px;  /* Changed from -40px */
    top: 15%;
    animation: float-gentle 3.5s ease-in-out infinite reverse;
    animation-delay: -1s;
}

.right-sticker-2 {
    right: 20px;  /* Changed from -30px */
    top: 55%;
    animation: float-gentle 4.2s ease-in-out infinite;
    animation-delay: -2s;
}
/* === STICKER ICON STYLING === */
.sticker-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 3px solid rgba(78, 205, 196, 0.3);
}

.floating-sticker:hover .sticker-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    border-color: rgba(78, 205, 196, 0.6);
}

/* === STICKER SLIDER CONTAINER === */
.sticker-slider-container {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
}

/* === CLEAN CURVED RAINBOW SLIDER === */
.sticker-slider {
    width: 100%;
    height: 100%;
    position: relative;
    /* Remove all background styling - only use the SVG arc */
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.sticker-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3csvg width='100' height='50' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M 15 40 Q 50 10 85 40' stroke='%23ffeb3b' stroke-width='8' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

/* === ACTIVE STATE === */
.sticker-slider.active::before {
    background-image: url("data:image/svg+xml,%3csvg width='100' height='50' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M 15 40 Q 50 10 85 40' stroke='%23ff9800' stroke-width='10' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
    filter: drop-shadow(0 4px 8px rgba(255, 152, 0, 0.5));
}

/* === STICKER STATES === */
.floating-sticker.locked .sticker-icon {
    opacity: 0.4;
    filter: grayscale(70%);
    border-color: rgba(150, 150, 150, 0.3);
}

.floating-sticker.locked:hover .sticker-icon {
    opacity: 0.6;
    transform: scale(1.05);
}

.floating-sticker.unlocked .sticker-icon {
    opacity: 1;
    filter: none;
}

.floating-sticker.unlocked:hover .sticker-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    border-color: rgba(78, 205, 196, 0.6);
}

/* === LOCKED STICKER OVERLAY === */
.floating-sticker.locked::after {
    content: '🔒';
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === FLOATING ANIMATIONS === */
@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }
    33% {
        transform: translateY(-8px) rotate(1deg);
    }
    66% {
        transform: translateY(-4px) rotate(-1deg);
    }
}
/* === SLIDER HANDLE === */
.slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #ffad00;
    border-radius: 50%;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    /* Start at left side of arc */
    left: 10px;
    bottom: 2px;
    z-index: 10;
}

.slider-handle:active {
    cursor: grabbing;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-handle:hover {
    transform: scale(1.1);
    border-color: #ff8c00;
}

/* === SLIDER TRACK ENHANCEMENT === */
.sticker-slider {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ffeb3b 0%, #ff9800 100%);
    border-radius: 50px 50px 0 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.sticker-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: -2px;
    background: linear-gradient(90deg, #fff59d 0%, #ffb74d 100%);
    border-radius: 48px 48px 0 0;
}

/* === SLIDER ACTIVE STATE === */
.sticker-slider.active {
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    transform: scale(1.05);
}

/* === STICKER SHOWCASE MODAL === */
.sticker-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sticker-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === MODAL CONTENT === */
.sticker-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 40px;
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    color: white;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* === MODAL HEADER === */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* === CLOSE BUTTON === */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* === STICKER GRID === */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.sticker-slot {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* === EARNED STICKERS === */
.sticker-slot.earned {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.sticker-slot.earned:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.25);
}

/* === EMPTY STICKERS === */
.sticker-slot.empty {
    opacity: 0.5;
    cursor: not-allowed;
}

.sticker-slot.empty:hover {
    transform: scale(1.02);
}

/* === STICKER ICON IN MODAL === */
.sticker-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
}

.sticker-name {
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.9;
}

/* === EMPTY SLOT PLACEHOLDER === */
.sticker-slot.empty .sticker-emoji {
    opacity: 0.3;
    font-size: 2rem;
}

.sticker-slot.empty .sticker-name {
    opacity: 0.5;
}
