/* Silent Hill F Guide - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B0000;
    --secondary-color: #2C1810;
    --background-color: #1A1A1A;
    --text-color: #E5E5E5;
    --accent-color: #CC3333;
    --header-bg: rgba(20, 20, 20, 0.95);
    --content-bg: #222;
    --border-color: #444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(135deg, #1A1A1A 0%, #2D1B1B 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.content-area {
    background: var(--content-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar {
    background: var(--content-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: fit-content;
}

/* Typography */
h1 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

p {
    margin-bottom: 1rem;
}

/* Guide Categories */
.guide-categories {
    display: grid;
    gap: 2rem;
}

.category {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3A2A2A 100%);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 0, 0, 0.3);
}

.category h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.guide-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.guide-list li {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.guide-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem;
    display: block;
    transition: color 0.3s ease;
}

.guide-list a:hover {
    color: var(--accent-color);
    background-color: rgba(139, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

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

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Article/Guide Page Styles */
.article-header {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.article-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
    box-shadow: var(--shadow);
}

.related-guides {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.related-guides h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.related-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.related-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.related-list a:hover {
    color: var(--accent-color);
    background-color: rgba(139, 0, 0, 0.1);
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .content-area,
    .sidebar {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .category {
        padding: 1rem;
    }
}

/* Performance Optimizations */
.header {
    will-change: transform;
}

.category,
.guide-list a,
.nav-menu a {
    will-change: transform, background-color;
}

/* Trophy Guide Specific Styles */
.trophy-stats {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.trophy-stats p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.warning-box, .tip-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.warning-box {
    background: linear-gradient(135deg, #2C1810 0%, #3A1F1F 100%);
    border-left-color: #CC3333;
}

.tip-box.important {
    background: linear-gradient(135deg, #2C1810 0%, #3A1F1F 100%);
    border-left-color: #FF6B6B;
}

.tip-box.helpful {
    background: linear-gradient(135deg, #1A2C18 0%, #1F3A1F 100%);
    border-left-color: #4CAF50;
}

.roadmap-section {
    margin: 2rem 0;
}

.roadmap-step {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    position: relative;
}

.roadmap-step::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.step-objectives {
    margin-top: 1rem;
}

.step-objectives h4 {
    color: var(--accent-color);
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.trophy-category {
    margin: 2rem 0;
}

.trophy-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.trophy-item {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trophy-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 0, 0, 0.2);
}

.trophy-item.challenging {
    border-left: 4px solid #FF6B6B;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3A1F1F 100%);
}

.trophy-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.trophy-strategy, .trophy-tip {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.trophy-strategy h5 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.trophy-strategy ul, .trophy-tip ul, .step-objectives ul, .warning-box ul, .tip-box ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.trophy-strategy li, .trophy-tip li, .step-objectives li, .warning-box li, .tip-box li {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.trophy-tip strong {
    color: var(--accent-color);
}

/* Enhanced link styles within trophy content */
.trophy-tip a, .trophy-strategy a {
    color: var(--accent-color);
    text-decoration: underline;
}

.trophy-tip a:hover, .trophy-strategy a:hover {
    color: #FF6B6B;
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .footer,
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-area {
        background: white;
        box-shadow: none;
        border: none;
    }
    
    .trophy-item, .roadmap-step, .warning-box, .tip-box {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}