/**
 * CheeseClue - Main Styles
 * Core styles, layout, and base components
 */

/* Base Reset */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #fef3c7;
}

/* Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Main Container */
#game-container {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1;
    padding: 1rem;
    padding-bottom: 200px;
    max-height: calc(100vh - 20px);
    width: min(90vw, 1200px);
    margin: 0 auto;
    scroll-behavior: smooth;
}

/* Hero Sections */
.hero-desktop {
    background-color: #ffc107;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-desktop h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-desktop p {
    margin: 0;
    font-size: 1.1rem;
}

.hero-desktop .icon-group {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    display: flex;
    gap: 10px;
}

.hero-desktop .info-icon,
.hero-desktop .star-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: white;
    padding: 12px 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 60px;
}

.hero-mobile .title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.hero-mobile .title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.hero-mobile .subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.hero-mobile .icon-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-mobile .info-icon,
.hero-mobile .star-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hero-mobile .info-icon:hover,
.hero-mobile .star-icon:hover,
.hero-desktop .info-icon:hover,
.hero-desktop .star-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Story Section */
#story-section {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
    padding: 0 1rem;
}

#story-section h5 {
    color: #333;
    margin-bottom: 1rem;
}

#story-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

#story-section small {
    color: #888;
}

/* Advertisement Placeholder */
.adwords-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.adwords-placeholder p {
    margin: 0.5rem 0;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-4px); }
}

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