/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');


/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg,
            #fef9c3 0%,
            #fde68a 25%,
            #a7f3d0 75%,
            #bfdbfe 100%);
}


/* ============================================
   BACKGROUND PATTERNS
   ============================================ */
.hexagon-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23e97b2a' fill-opacity='0.4'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 100px 100px;
    z-index: 0;
    pointer-events: none;
}



/* ============================================
   TYPOGRAPHY
   ============================================ */
.bouncy-text {
    font-family: 'Fredoka', sans-serif;
    color: #1f2937;
    text-shadow:
        3px 3px 0 #facc15,
        6px 6px 10px rgba(0, 0, 0, 0.1);
}


/* ============================================
   CARD COMPONENTS
   ============================================ */

/* Base Card */
.cute-card {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95),
            rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.cute-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

/* Card Variants */
.card-create {
    background: linear-gradient(145deg,
            rgba(236, 72, 153, 0.25),
            rgba(219, 39, 119, 0.2));
    border-color: rgba(236, 72, 153, 0.6);
}

.card-create:hover {
    background: linear-gradient(145deg,
            rgba(236, 72, 153, 0.35),
            rgba(219, 39, 119, 0.3));
    border-color: rgba(236, 72, 153, 0.8);
}

.card-play {
    background: linear-gradient(145deg,
            rgba(59, 130, 246, 0.25),
            rgba(37, 99, 235, 0.2));
    border-color: rgba(59, 130, 246, 0.6);
}

.card-play:hover {
    background: linear-gradient(145deg,
            rgba(59, 130, 246, 0.35),
            rgba(37, 99, 235, 0.3));
    border-color: rgba(59, 130, 246, 0.8);
}

.card-join {
    background: linear-gradient(145deg,
            rgba(34, 197, 94, 0.25),
            rgba(22, 163, 74, 0.2));
    border-color: rgba(34, 197, 94, 0.6);
}

.card-join:hover {
    background: linear-gradient(145deg,
            rgba(34, 197, 94, 0.35),
            rgba(22, 163, 74, 0.3));
    border-color: rgba(34, 197, 94, 0.8);
}

.code-card {
    background: linear-gradient(145deg,
            rgba(59, 130, 246, 0.25),
            rgba(37, 99, 235, 0.2));
    border-color: rgba(59, 130, 246, 0.6);
}

.players-card {
    background: linear-gradient(145deg,
            rgba(236, 72, 153, 0.25),
            rgba(219, 39, 119, 0.2));
    border-color: rgba(236, 72, 153, 0.6);
}

.player-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-card {
    background: linear-gradient(145deg,
            rgba(147, 51, 234, 0.25),
            rgba(126, 34, 206, 0.2));
    border-color: rgba(147, 51, 234, 0.6);
}

.leaderboard-card {
    background: linear-gradient(145deg,
            rgba(34, 197, 94, 0.25),
            rgba(22, 163, 74, 0.2));
    border-color: rgba(34, 197, 94, 0.6);
}


/* ============================================
   BUTTONS
   ============================================ */

/* Family Button */
.family-button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 3px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.family-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Join Button */
.join-button {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    border: 3px solid rgba(34, 197, 94, 0.6);
    transition: all 0.3s ease;
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    background: linear-gradient(145deg, #16a34a, #15803d);
}

/* Back Button */
.back-button {
    background: linear-gradient(145deg,
            rgba(156, 163, 175, 0.3),
            rgba(107, 114, 128, 0.2));
    border: 3px solid rgba(156, 163, 175, 0.6);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(145deg,
            rgba(156, 163, 175, 0.4),
            rgba(107, 114, 128, 0.3));
    border-color: rgba(156, 163, 175, 0.8);
}

/* Start Button */
.start-button {
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Answer Buttons */
.answer-button {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.9),
            rgba(255, 255, 255, 0.8));
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.answer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.answer-button.selected {
    border-color: #facc15;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
    transform: translateY(-2px);
}

/* Answer Color Variants */
.answer-red {
    background: linear-gradient(145deg,
            rgba(239, 68, 68, 0.9),
            rgba(220, 38, 38, 0.8));
    color: white;
}

.answer-blue {
    background: linear-gradient(145deg,
            rgba(59, 130, 246, 0.9),
            rgba(37, 99, 235, 0.8));
    color: white;
}

.answer-yellow {
    background: linear-gradient(145deg,
            rgba(245, 158, 11, 0.9),
            rgba(217, 119, 6, 0.8));
    color: white;
}

.answer-green {
    background: linear-gradient(145deg,
            rgba(34, 197, 94, 0.9),
            rgba(22, 163, 74, 0.8));
    color: white;
}

/* Store Button */
.store-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 20;
    background: linear-gradient(145deg,
            rgba(139, 92, 246, 0.95),
            rgba(124, 58, 237, 0.9));
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 15px 30px rgba(139, 92, 246, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.8);
    background: linear-gradient(145deg,
            rgba(147, 51, 234, 0.95),
            rgba(126, 34, 206, 0.9));
}


/* ============================================
   FORM INPUTS
   ============================================ */

/* Search Input */
.search-input {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(156, 163, 175, 0.3);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

/* Form Input */
.form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    outline: none;
}


/* ============================================
   ICONS
   ============================================ */
.icon-container svg {
    width: 64px;
    height: 64px;
    display: block;
}


/* ============================================
   STATUS BADGES & INDICATORS
   ============================================ */

/* Player Status */
.ready {
    background: #10b981;
    color: white;
}

.waiting {
    background: #f59e0b;
    color: white;
}

/* Host Badge */
.host-badge {
    background: #facc15;
    color: #1f2937;
}

/* QR Code */
.qr-code {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}


/* ============================================
   GAME ELEMENTS
   ============================================ */

/* Timer */
.timer-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

/* Leaderboard */
.leaderboard-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.you-highlight {
    background: linear-gradient(145deg,
            rgba(250, 204, 21, 0.3),
            rgba(245, 158, 11, 0.2));
    border-color: rgba(250, 204, 21, 0.6);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below */
@media (max-width: 1200px) {
    .custom-keysshortcuts {
        display: none;
    }

    .store-button .store-text {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .store-button {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem !important;
    }

    .store-button svg {
        width: 24px !important;
        height: 24px !important;
    }

    .store-button .store-text {
        display: none;
    }
}
