/* FreeTakeoff.tools - Guide-Specific Styles */
/* Requires base.css to be loaded first for variables and nav-bar styles */

/* Secondary Navigation Bar (Guide Pages) */
.guide-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.guide-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s;
}

.guide-nav a:hover {
    color: var(--text-primary);
}

.guide-nav a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Main Content Area */
.guide-content {
    padding: 2rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Page Header */
.guide-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.guide-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.guide-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Table of Contents */
.toc {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc li { margin-bottom: 0.4rem; }

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

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

/* Content Sections */
.guide-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--accent);
}

.guide-content h2:first-of-type { margin-top: 0; }

.guide-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.guide-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.guide-content strong { color: var(--text-primary); }

.guide-content ul,
.guide-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.guide-content li { margin-bottom: 0.5rem; }

.guide-content a { color: var(--accent); }
.guide-content a.btn-primary { color: var(--bg-dark); }

/* Formula boxes */
.formula-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.formula-box .label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.formula-box code { color: var(--accent); }

.formula-box .example {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tip boxes */
.tip-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.tip-box .tip-title {
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-box p { margin-bottom: 0; }

/* Warning boxes */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.warning-box .warning-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box p { margin-bottom: 0; }

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 1.25rem 0;
}

.guide-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.guide-content th,
.guide-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.guide-content th {
    background: var(--bg-input);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.guide-content td { color: var(--text-secondary); }

.guide-content tr:hover td { background: var(--bg-input); }

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-answer { color: var(--text-secondary); margin-bottom: 0; }

/* Guide Footer */
.guide-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.guide-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

/* Guide cards for index page */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.guide-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.guide-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.guide-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.guide-card p {
    margin: 0;
    font-size: 0.9rem;
}

.guide-card.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

.guide-card .badge {
    display: inline-block;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .guide-content { padding: 1.5rem; }
    .guide-header h1 { font-size: 1.5rem; }
    .cta-section { padding: 1.5rem; }
    .toc { padding: 1rem; }
}

/* Print Styles */
@media print {
    .guide-nav, .cta-section { display: none; }
    .guide-content { max-width: 100%; padding: 0; }
    .guide-content h2 { color: black; border-bottom-color: #ccc; }
    .guide-content a { color: black; }
}
