/* AviatorGuide — Custom Styles */
/* Minimal overrides for Bootstrap 5.3 */

:root {
    --ag-primary: #1a73e8;
    --ag-dark: #1a1a2e;
    --ag-accent: #e94560;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Article typography */
article {
    max-width: 800px;
    font-size: 1.05rem;
}

article h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ag-dark);
}

article h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--ag-dark);
}

article h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* TL;DR block */
.alert-info.border-start {
    background-color: #f0f7ff !important;
    border-color: var(--ag-primary) !important;
}

/* TOC styling */
#toc {
    border-left: 3px solid var(--ag-primary);
}

#toc a {
    text-decoration: none;
    color: #555;
}

#toc a:hover {
    color: var(--ag-primary);
}

/* FAQ details/summary */
.faq-list details {
    background: #fafafa;
    transition: background 0.2s;
}

.faq-list details[open] {
    background: #fff;
    border-color: var(--ag-primary) !important;
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding-right: 1.5em;
    position: relative;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--ag-primary);
}

.faq-list details[open] summary::after {
    content: '−';
}

/* Star ratings */
.text-warning {
    color: #ffc107 !important;
}

/* Glossary dt/dd */
dt {
    color: var(--ag-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
}

dd {
    color: #555;
}

/* Comparison tables */
.table-responsive {
    margin-bottom: 1.5rem;
}

.table th {
    white-space: nowrap;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

/* Navbar active */
.navbar .nav-link.active {
    font-weight: 600;
}

/* Blockquote styling */
blockquote.blockquote {
    font-style: italic;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

blockquote .blockquote-footer {
    font-style: normal;
    font-size: 0.9rem;
}

/* Footer */
footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* noscript visibility */
.nojs-show {
    display: none;
}

/* Screenshot / figure styling */
article img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

article figure {
    margin: 1.5rem 0;
}

article figure img {
    display: block;
}

article figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Side-by-side comparison images */
.img-compare {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.img-compare figure {
    flex: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .img-compare {
        flex-direction: column;
    }
}

/* Scam screenshot with warning border */
.img-scam {
    border: 3px solid #dc3545;
    position: relative;
}

.img-scam-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc3545;
    color: #fff;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Demo iframe */
.demo-wrap {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: #0a0a1a;
    margin-bottom: 1.5rem;
}

.demo-wrap iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.demo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 700px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
    text-align: center;
    color: #fff;
}

.demo-placeholder-content {
    max-width: 400px;
}

.demo-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.demo-placeholder-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.demo-placeholder-subtitle {
    font-size: 0.95rem;
    color: #aab;
    margin-bottom: 1.5rem;
}

.demo-play-btn {
    padding: 0.75rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 2rem;
}

.demo-placeholder-note {
    font-size: 0.75rem;
    color: #667;
    margin-top: 1rem;
}

.demo-wrap:fullscreen,
.demo-wrap:-webkit-full-screen {
    background: #000;
}

.demo-wrap:fullscreen iframe,
.demo-wrap:-webkit-full-screen iframe {
    height: 100vh;
}

@media (max-width: 768px) {
    .demo-wrap iframe,
    .demo-placeholder {
        height: 500px;
    }
}

/* Print styles */
@media print {
    .navbar, footer, #toc, .breadcrumb {
        display: none;
    }
    article {
        max-width: 100%;
    }
}
