/* ==============================
   GUIDE PAGE STYLES
   ============================== */

/* Guide Container */
.guide-container {
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* Breadcrumb Override */
.guide-container .breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #64748b;
}

.guide-container .breadcrumb a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-container .breadcrumb a:hover {
    color: #ec4899;
}

.guide-container .breadcrumb span {
    margin: 0 8px;
    color: #cbd5e1;
}

.guide-container .breadcrumb .current {
    color: #1e293b;
    font-weight: 500;
}

/* Guide Hero */
.guide-hero {
    border-radius: 24px;
    padding: 50px 60px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: center;
}

.guide-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.guide-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1e293b;
}

.guide-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 30px;
}

.guide-meta-bar {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.meta-icon {
    font-size: 16px;
}

.guide-hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.guide-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Layout */
.guide-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Main Article */
.guide-article {
    border-radius: 24px;
    padding: 50px;
}

/* Table of Contents */
.toc-card {
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 40px;
    border-left: 4px solid #6366f1;
}

.toc-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: block;
}

.toc-nav a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding-left: 24px;
}

/* Article Content */
.article-content {
    color: #1e293b;
}

.article-content section {
    margin-bottom: 50px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 16px;
    color: #1e293b;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #1e293b;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #475569;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #475569;
}

.article-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* Info Boxes */
.info-box,
.warning-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.info-box {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid #6366f1;
}

.warning-box {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
}

.info-box-icon,
.warning-box-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-box-content,
.warning-box-content {
    flex: 1;
}

.info-box-content strong,
.warning-box-content strong {
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
}

.info-box-content p,
.warning-box-content p {
    margin: 0;
    font-size: 15px;
}

/* Screenshot Box */
.screenshot-box {
    margin: 30px 0;
    text-align: center;
}

.screenshot-box img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.caption {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}

/* Ship Classes Grid */
.ship-classes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.class-card {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.class-card h4 {
    font-size: 16px;
    margin: 0 0 12px;
    color: #1e293b;
}

.class-card ul {
    margin: 0;
    padding-left: 20px;
}

.class-card li {
    font-size: 14px;
    margin-bottom: 6px;
}

/* Code Box */
.code-box {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-box code {
    color: #e0f2fe;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Resource Table */
.resource-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
}

.resource-table thead {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
}

.resource-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.resource-table tbody tr {
    background: rgba(255, 255, 255, 0.5);
}

.resource-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.3);
}

.resource-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
}

/* Timeline */
.timeline {
    margin: 30px 0;
    padding-left: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #6366f1 0%, #ec4899 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.timeline-content h4 {
    font-size: 16px;
    margin: 0 0 8px;
}

.timeline-content p {
    margin: 0;
    font-size: 14px;
}

/* Mistakes Grid */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.mistake-card {
    padding: 24px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.mistake-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.mistake-card h4 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #dc2626;
}

.mistake-card p {
    margin: 0;
    font-size: 14px;
}

/* Tips List */
.tips-list {
    margin: 24px 0;
}

.tip-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10b981;
}

.tip-number {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-item strong {
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
}

/* Conclusion Box */
.conclusion-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.conclusion-box h3 {
    font-size: 28px;
    margin: 0 0 16px;
}

.conclusion-box p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 24px;
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-info p {
    margin: 0 0 8px;
    font-size: 15px;
}

.author-info p:last-child {
    font-size: 14px;
    color: #64748b;
}

/* Sidebar */
.guide-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    border-radius: 20px;
    padding: 24px;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1e293b;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: white;
    border-color: #6366f1;
    color: #6366f1;
}

/* Game Quick Link */
.game-quick-link {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    margin-bottom: 16px;
}

.game-quick-link img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.game-quick-link h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1e293b;
}

.game-rating {
    font-size: 13px;
    color: #f59e0b;
}

/* Related Guides */
.related-guides {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-guide-item {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-guide-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.guide-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.related-guide-item h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1e293b;
}

.guide-views {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* Ad Space */
.ad-space {
    text-align: center;
    background: rgba(203, 213, 225, 0.2);
}

.ad-space p {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ad-placeholder {
    width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.1);
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 24px;
    color: #cbd5e1;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .guide-content-layout {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .guide-hero {
        grid-template-columns: 1fr;
    }

    .guide-hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .ship-classes {
        grid-template-columns: 1fr;
    }

    .mistakes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .guide-container {
        padding: 20px 20px 40px;
    }

    .guide-hero {
        padding: 30px 24px;
    }

    .guide-hero h1 {
        font-size: 28px;
    }

    .guide-article {
        padding: 30px 24px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .guide-sidebar {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }
}
.guide-container { max-width:1300px; }
.guide-content-layout { grid-template-columns:minmax(0,1fr) 300px; }
.guide-article { min-width:0; padding:36px; }
.article-content { max-width:72ch; margin-inline:auto; overflow-wrap:anywhere; }
.article-content ul { list-style:disc outside; }
.article-content ol { list-style:decimal outside; }
.article-content ul ul { list-style:circle; }
.article-content ol ol { list-style:lower-alpha; }
.article-content h2, .article-content h3, .article-content h4 { scroll-margin-top:160px; }
.article-content img { max-width:100%; height:auto; }
.article-content table { display:block; max-width:100%; overflow-x:auto; }
.article-content pre { overflow-x:auto; }
.toc-card summary { font-size:18px; font-weight:600; cursor:pointer; color:#1e293b; }
.toc-nav { margin-top:16px; }
.toc-nav .toc-level-3 { padding-left:28px; }
@media (max-width:1200px) { .guide-content-layout { grid-template-columns:minmax(0,1fr); } }
@media (max-width:768px) {
    .guide-container { padding:12px 12px 32px; }
    .guide-article { padding:24px 18px; }
    .guide-hero { padding:24px 18px; }
    .article-content h2, .article-content h3, .article-content h4 { scroll-margin-top:20px; }
    .toc-card { padding:18px; }
}
