/* common.css - Shared styles for all games */

/* ============================================================================
   COPY SUCCESS AND PROMPT MESSAGE STYLES
   ============================================================================ */

.copy-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: fadeInOut 3s ease-in-out;
}

.copy-success-content {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #4CAF50;
}

.copy-prompt-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 25px;
    border-radius: 15px;
    max-width: 90vw;
    width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid #2196F3;
}

.copy-prompt-content h3 {
    margin: 0 0 15px 0;
    color: #2196F3;
    font-size: 18px;
}

.copy-prompt-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
}

.url-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.copy-prompt-content button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-prompt-content button:hover {
    background: #1976D2;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* ============================================================================
   ACHIEVEMENT POPUP STYLES
   ============================================================================ */

.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 20px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
    animation: achievementBounce 3s ease-in-out;
    border: 3px solid #FF8C00;
}

@keyframes achievementBounce {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    40% { transform: translate(-50%, -50%) scale(1); }
    60% { transform: translate(-50%, -50%) scale(1.05); }
    80% { transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* ============================================================================
   FLOATING EMOJI ANIMATIONS
   ============================================================================ */

.floating-emoji {
    position: fixed;
    font-size: 2em;
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* ============================================================================
   SCREEN SHAKE ANIMATION
   ============================================================================ */

.screen-shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================================================
   SHARE SECTION STYLES
   ============================================================================ */

.share-section {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-block;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   STATS DISPLAY STYLES
   ============================================================================ */

.stats {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 220px;
}

.stat {
    margin: 12px 0;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-count {
    color: #2196F3;
    font-size: 1.3em;
}

.total-count {
    color: #4CAF50;
    font-size: 1.2em;
}

/* ============================================================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .copy-prompt-message {
        width: 85vw;
        padding: 20px;
    }
    
    .copy-prompt-content h3 {
        font-size: 16px;
    }
    
    .copy-prompt-content p {
        font-size: 13px;
    }
    
    .url-display {
        font-size: 11px;
        padding: 10px;
    }
    
    .copy-prompt-content button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .stats {
        top: 10px;
        right: 10px;
        padding: 15px;
        min-width: 180px;
        font-size: 0.9em;
    }
    
    .share-section {
        margin-top: 20px;
        gap: 8px;
    }
    
    .share-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stats {
        top: 8px;
        right: 8px;
        padding: 12px;
        min-width: 160px;
        font-size: 0.8em;
    }
    
    .share-button {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .achievement-popup {
        padding: 15px 25px;
        font-size: 16px;
    }
}
