/* Game Container and Layout */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Core Concept Banner */
.core-concept-banner {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.core-concept-banner p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

.core-concept-banner strong {
    color: #667eea;
    font-weight: 600;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.elon-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.elon-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    object-fit: cover;
}

.money-info h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.money-display {
    background: rgba(255,255,255,0.2);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.money-amount {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.spent-info {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Achievements */
.achievements {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.achievement-badge {
    background: #ffd700;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Game Content Layout */
.game-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Store Section */
.store h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    contain: layout style;
}

/* Item Cards */
.item-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    will-change: transform;
}

.item-card.affordable {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.item-visual {
    position: relative;
    margin-bottom: 1rem;
}

.item-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: #f0f0f0;
    transition: opacity 0.3s ease;
}

.item-emoji {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.item-name {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    text-align: center;
}

.item-description {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.item-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2196F3;
    text-align: center;
    margin-bottom: 1rem;
}

/* Item Controls */
.item-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.buy-button, .sell-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.buy-button {
    background: #4CAF50;
    color: white;
}

.buy-button:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-1px);
}

.buy-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sell-button {
    background: #ff6b6b;
    color: white;
}

.sell-button:hover:not(:disabled) {
    background: #ff5252;
    transform: translateY(-1px);
}

.sell-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Shopping Cart */
.cart {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.cart h2 {
    margin: 0 0 1.5rem 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.item-info {
    flex: 1;
    font-size: 0.9rem;
}

.item-total {
    font-weight: bold;
    color: #2196F3;
    font-size: 0.9rem;
}

.cart-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
}

/* SEO Content Styles */
.seo-content {
    background: #f8f9fa;
    margin-top: 4rem;
    padding: 3rem 0;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    line-height: 1.7;
}

.seo-content h2 {
    color: #333;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.seo-content h3 {
    color: #444;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.seo-content p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.seo-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style: none;
}

.seo-content li {
    color: #555;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.seo-content li::before {
    content: "→";
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 0;
}

.seo-content strong {
    color: #333;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .game-content {
        grid-template-columns: 1fr;
    }
    
    .elon-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .money-info h1 {
        font-size: 2rem;
    }
    
    .money-amount {
        font-size: 2rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        padding: 1rem;
    }
    
    .item-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .buy-button, .sell-button {
        width: 100%;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .seo-content h3 {
        font-size: 1.2rem;
    }
}
