/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('./images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Main wrapper for game and ads */
.main-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 0 20px;
    min-height: calc(100vh - 120px); /* Account for top/bottom ads */
}

/* Main container */
.container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.daily-indicator {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 15px auto;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.guess-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 25px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-top: 15px;
}

/* Main game area */
.game-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin-bottom: 30px;
    flex: 1;
}

/* Hero image section */
.hero-image-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.hero-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.silhouette {
    width: 150px;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: relative;
}

.silhouette::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.reveal-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.reveal-button.show {
    opacity: 1;
    transform: translateY(0);
}

.reveal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Search section */
.guess-section {
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

#heroSearch {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

#heroSearch:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Search results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #e0e0e0;
}

.search-result-item.already-guessed {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.already-guessed-text {
    font-size: 12px;
    color: #ff4444;
    font-style: italic;
    margin-left: auto;
}

/* Guesses container */
.guesses-container {
    margin-top: 30px;
}

.guess-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.guess-item.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
}

.guess-hero {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.guess-hero img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
}

.hero-name {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.guess-hints {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.hint-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.hint-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hint-value {
    font-size: 14px;
    font-weight: 500;
}

.hint-item.correct {
    background-color: #4CAF50;
    color: white;
}

.hint-item.incorrect {
    background-color: #f44336;
    color: white;
}

.hint-item.earlier {
    background-color: #FF9800;
    color: white;
}

.hint-item.later {
    background-color: #FF9800;
    color: white;
}

/* Results section */
.results-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    margin-top: 20px;
}

.result-message {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.hero-details {
    margin-bottom: 25px;
}

.hero-details h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.hero-details p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
}

.daily-complete-message {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    text-align: center;
}

.daily-complete-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.share-section {
    margin-top: 20px;
}

.share-section p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.share-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Stats section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: white;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.8;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
}

/* Ad containers */
.ad-banner-top {
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.ad-banner-bottom {
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(5px);
    margin-top: 20px;
}

.ad-sidebar-left,
.ad-sidebar-right {
    width: 300px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(5px);
    position: sticky;
    top: 20px;
    align-self: start;
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-wrapper {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .ad-sidebar-left,
    .ad-sidebar-right {
        display: none; /* Hide sidebar ads on smaller screens */
    }
    
    .container {
        padding: 15px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 0 10px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .game-container {
        padding: 20px;
    }
    
    .hero-image {
        width: 150px;
        height: 150px;
    }
    
    .silhouette {
        width: 100px;
        height: 100px;
    }
    
    .silhouette::before {
        font-size: 3rem;
    }
    
    .guess-hints {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .ad-banner-top,
    .ad-banner-bottom {
        height: 50px;
        margin: 10px 0;
    }
} 