* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    width: 200px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
}

/* Section Styles */
section {
    padding: 3rem 0;
    background: white;
    margin-bottom: 2rem;
    border-radius: 10px;
}

section h2 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

section h3 {
    color: #764ba2;
    margin-bottom: 1rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card, .mod-card, .mod-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover, .mod-card:hover, .mod-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.game-rating, .rating {
    color: #ffa500;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.game-card h3, .mod-card h3, .mod-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #764ba2;
}

.btn-primary {
    background: #667eea;
}

.btn-secondary {
    background: #764ba2;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-play {
    background: #4CAF50;
    width: 100%;
    margin-top: 1rem;
}

.btn-play:hover {
    background: #45a049;
}

/* Features Grid */
.features-grid, .types-grid, .pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card, .type-card, .pillar-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.feature-card h3, .type-card h3, .pillar-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* CTA Sections */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-section {
    text-align: center;
    padding: 3rem 0;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Content Styles */
.content-block {
    line-height: 1.8;
}

.content-block p {
    margin-bottom: 1rem;
}

.content-block ul, .content-block ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Character Cards */
.character-card {
    background: #f9f9f9;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.character-traits {
    list-style: none;
    margin-top: 1rem;
}

.character-traits li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

/* Controls Display */
.controls-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.control-scheme {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
}

.keys-display {
    margin-top: 1rem;
}

.key {
    background: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    border: 2px solid #667eea;
}

/* Difficulty Badges */
.difficulty, .mod-details span {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #667eea;
    color: white;
    border-radius: 15px;
    font-size: 0.9rem;
    margin: 0.3rem;
}

/* Lists */
.tips-list, .benefits-list, .values-list {
    margin-left: 2rem;
    line-height: 2;
}

.tips-list li, .benefits-list li, .values-list li {
    margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-code {
    font-size: 8rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-suggestions {
    margin: 2rem 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Terms & Legal Pages */
.terms-section, .privacy-section {
    margin-bottom: 2rem;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid, .types-grid, .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-visual {
        grid-template-columns: 1fr;
    }
    
    .error-code {
        font-size: 5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* View More Section */
.view-more {
    text-align: center;
    margin-top: 2rem;
}
