/* Subpage Styles */

/* Navigation Active State */
.nav-menu .active {
    color: #87CEEB;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

    .nav-menu .active:hover {
        background: rgba(135, 206, 235, 0.2);
    }
    
    /* Mobile navigation adjustments */
    .nav-menu .active {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    background: #FFF9F0;
    min-height: 100vh;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section Styles */
.download-section,
.location-section,
.structure-section,
.replacement-section,
.troubleshooting-section,
.guide-section,
.toc-section,
.characters-section,
.endings-section,
.achievements-section,
.hidden-section,
.tips-section,
.walkthrough-section {
    margin-bottom: 4rem;
}

.download-section h2,
.location-section h2,
.structure-section h2,
.replacement-section h2,
.troubleshooting-section h2,
.guide-section h2,
.toc-section h2,
.characters-section h2,
.endings-section h2,
.achievements-section h2,
.hidden-section h2,
.tips-section h2,
.walkthrough-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.download-section h2::after,
.location-section h2::after,
.structure-section h2::after,
.replacement-section h2::after,
.troubleshooting-section h2::after,
.guide-section h2::after,
.toc-section h2::after,
.characters-section h2::after,
.endings-section h2::after,
.achievements-section h2::after,
.hidden-section h2::after,
.tips-section h2::after,
.walkthrough-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #87CEEB;
    border-radius: 2px;
}

/* Download Grid */
.download-grid,
.save-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.download-card,
.save-card,
.content-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-card:hover,
.save-card:hover,
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.2);
    border-color: #87CEEB;
}

.download-header,
.save-header,
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F8FF;
}

.download-header h3,
.save-header h3,
.content-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.version-tag,
.save-type,
.content-type {
    background: #87CEEB;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.version-tag {
    background: #4CAF50;
}

.save-type {
    background: #FF9800;
}

.content-type {
    background: #9C27B0;
}

.download-info,
.save-info,
.content-info {
    margin-bottom: 1.5rem;
}

.download-info p,
.save-info p,
.content-info p {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.download-info ul,
.save-info ul,
.content-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.download-info li,
.save-info li,
.content-info li {
    margin-bottom: 0.3rem;
    color: #555;
}

.download-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.download-btn.primary {
    background: #87CEEB;
    color: white;
}

.download-btn.primary:hover {
    background: #5FB3D3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

.download-btn.secondary {
    background: transparent;
    color: #87CEEB;
    border-color: #87CEEB;
}

.download-btn.secondary:hover {
    background: #87CEEB;
    color: white;
    transform: translateY(-2px);
}

/* Path Cards */
.path-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.path-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #87CEEB;
}

.path-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.path-content code {
    background: #F8F9FA;
    padding: 0.8rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    display: block;
    margin-bottom: 0.5rem;
    word-break: break-all;
    border: 1px solid #E9ECEF;
}

.path-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* File Structure */
.structure-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.file-tree pre {
    background: #2D3748;
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.file-info ul {
    list-style: none;
    padding: 0;
}

.file-info li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #F7FAFC;
    border-radius: 8px;
    border-left: 3px solid #87CEEB;
}

/* Guide Cards */
.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #87CEEB;
}

.guide-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.step-content ol,
.step-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.step-content li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.warning-box {
    background: #FFF3CD;
    border: 1px solid #FFEAA7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #856404;
}

/* Troubleshooting */
.trouble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trouble-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #FF6B6B;
}

.trouble-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.trouble-content p {
    margin-bottom: 1rem;
    color: #555;
}

.trouble-content ul,
.trouble-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.trouble-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* TOC Grid */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.toc-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.toc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.2);
    border-color: #87CEEB;
}

.toc-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.toc-item p {
    color: #666;
    line-height: 1.6;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.character-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.2);
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F8FF;
}

.character-header h3 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.character-type {
    background: #FF6B9D;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.character-info h4 {
    color: #333;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.character-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.character-info ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.character-info li {
    margin-bottom: 0.3rem;
    color: #555;
}

/* Ending Grid */
.ending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ending-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.2);
}

.ending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F8FF;
}

.ending-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.ending-type {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.ending-type:first-child {
    background: #4CAF50;
}

.ending-type:nth-child(2) {
    background: #FF9800;
}

.ending-type:nth-child(3) {
    background: #2196F3;
}

.ending-type:nth-child(4) {
    background: #E91E63;
}

.ending-type:nth-child(5) {
    background: #9C27B0;
}

.ending-type:nth-child(6) {
    background: #607D8B;
}

.ending-content h4 {
    color: #333;
    margin: 1rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.ending-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ending-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.ending-content li {
    margin-bottom: 0.3rem;
    color: #555;
}

/* Achievement Categories */
.achievement-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F8FF;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 8px;
    border-left: 3px solid #87CEEB;
}

.achievement-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.achievement-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Hidden Grid */
.hidden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.hidden-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hidden-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F8FF;
}

.hidden-content h4 {
    color: #333;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.hidden-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.hidden-content li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #87CEEB;
}

.tip-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.tip-card ul {
    padding-left: 1.5rem;
}

.tip-card li {
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
}

/* Walkthrough Content */
.walkthrough-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.chapter-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #87CEEB;
}

.chapter-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.chapter-content h4 {
    color: #333;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.chapter-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.chapter-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.chapter-content li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

/* Action Buttons */
.actions-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.action-btn.primary {
    background: #87CEEB;
    color: white;
}

.action-btn.primary:hover {
    background: #5FB3D3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.4);
}

.action-btn.secondary {
    background: transparent;
    color: #87CEEB;
    border-color: #87CEEB;
}

.action-btn.secondary:hover {
    background: #87CEEB;
    color: white;
    transform: translateY(-3px);
}

/* OS Section */
.os-section {
    margin-bottom: 3rem;
}

.os-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F8FF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 1rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .content-container {
        padding: 2rem 1rem;
    }
    
    .download-grid,
    .save-grid,
    .content-grid,
    .path-info,
    .guide-content,
    .trouble-grid,
    .toc-grid,
    .character-grid,
    .ending-grid,
    .achievement-categories,
    .hidden-grid,
    .tips-grid,
    .walkthrough-content {
        grid-template-columns: 1fr;
    }
    
    .structure-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .download-actions,
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn,
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .file-tree pre {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .path-content code {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .download-section h2,
    .location-section h2,
    .structure-section h2,
    .replacement-section h2,
    .troubleshooting-section h2,
    .guide-section h2,
    .toc-section h2,
    .characters-section h2,
    .endings-section h2,
    .achievements-section h2,
    .hidden-section h2,
    .tips-section h2,
    .walkthrough-section h2 {
        font-size: 2rem;
    }
    
    .download-card,
    .save-card,
    .content-card,
    .path-card,
    .guide-card,
    .trouble-card,
    .toc-item,
    .character-card,
    .ending-card,
    .category-card,
    .hidden-card,
    .tip-card,
    .chapter-card {
        padding: 1.5rem;
    }
    
    .download-header h3,
    .save-header h3,
    .content-header h3,
    .character-header h3,
    .ending-header h3 {
        font-size: 1.3rem;
    }
}
