/**
 * How-To Guide Styles for GrahaGuru
 * Mobile-responsive CSS for step-by-step guides
 */

:root {
    --gg-purple: #8b45c1;
    --gg-purple-light: #a855f7;
    --gg-purple-dark: #6b21a8;
    --gg-bg: #0a0a1a;
    --gg-card-bg: rgba(26, 26, 58, 0.25);
    --gg-border: rgba(139, 69, 193, 0.35);
    --gg-text: #e5e5f7;
    --gg-text-muted: #a0a0b8;
    --gg-success: #10b981;
    --gg-warning: #f59e0b;
    --gg-info: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gg-bg);
    color: var(--gg-text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Navigation */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 26, 0.98);
    border-bottom: 1px solid var(--gg-border);
    backdrop-filter: blur(14px);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.nav-logo img {
    height: 40px;
    width: 40px;
}

.nav-logo span {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gg-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gg-purple-light);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gg-purple), var(--gg-purple-dark));
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta:hover {
    opacity: 0.9;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gg-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(139, 69, 193, 0.1);
    padding: 0.75rem 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--gg-text-muted);
}

.breadcrumb a {
    color: var(--gg-purple-light);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--gg-text-muted);
}

/* Hero Section */
.hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gg-purple-light), #f0abfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--gg-text-muted);
    font-size: 0.9rem;
}

.hero-meta i {
    margin-right: 0.5rem;
    color: var(--gg-purple-light);
}

.hero p {
    font-size: 1.1rem;
    color: var(--gg-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Glass Card */
.glass-card {
    background: var(--gg-card-bg);
    border: 1px solid var(--gg-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

/* Table of Contents */
.toc {
    margin-bottom: 2rem;
}

.toc h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gg-purple-light);
}

.toc ul {
    list-style: none;
}

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

.toc a {
    color: var(--gg-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.toc a:hover {
    background: rgba(139, 69, 193, 0.15);
}

.toc .step-num {
    width: 24px;
    height: 24px;
    background: var(--gg-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Introduction Section */
.intro {
    margin-bottom: 2rem;
}

.intro p {
    margin-bottom: 1rem;
    line-height: 1.9;
}

/* Step by Step Section */
.steps {
    counter-reset: step-counter;
}

.step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 69, 193, 0.2);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gg-purple), var(--gg-purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.step p {
    margin-bottom: 1rem;
    color: var(--gg-text);
    line-height: 1.9;
}

.step ul, .step ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--gg-text);
}

.step li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Tip Box */
.tip-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.tip-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.tip-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

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

.tip-box-title i {
    font-size: 1.1rem;
}

.tip-box.warning .tip-box-title {
    color: var(--gg-warning);
}

.tip-box .tip-box-title {
    color: var(--gg-success);
}

.tip-box.info .tip-box-title {
    color: var(--gg-info);
}

/* Requirements Box */
.requirements {
    background: rgba(139, 69, 193, 0.1);
    border: 1px solid var(--gg-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.requirements h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gg-purple-light);
}

.requirements ul {
    list-style: none;
}

.requirements li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.requirements li i {
    color: var(--gg-success);
    margin-top: 0.25rem;
}

/* FAQ Section */
.faq {
    margin-top: 3rem;
}

.faq h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: white;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gg-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: rgba(139, 69, 193, 0.1);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(139, 69, 193, 0.2);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--gg-text-muted);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    padding: 1.25rem;
    max-height: 500px;
}

/* Related Guides */
.related {
    margin-top: 3rem;
}

.related h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.related-card {
    background: var(--gg-card-bg);
    border: 1px solid var(--gg-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 69, 193, 0.25);
}

.related-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.related-card p {
    font-size: 0.875rem;
    color: var(--gg-text-muted);
}

/* CTA Section */
.cta-section {
    margin-top: 3rem;
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(139, 69, 193, 0.2), rgba(168, 85, 247, 0.15));
    border-radius: 16px;
    border: 1px solid var(--gg-border);
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gg-purple), var(--gg-purple-dark));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 193, 0.4);
}

/* Footer */
.footer {
    background: rgba(10, 10, 26, 0.95);
    border-top: 1px solid var(--gg-border);
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gg-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gg-purple-light);
}

.footer-copy {
    color: var(--gg-text-muted);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: none;
        background: rgba(10, 10, 26, 0.98);
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--gg-border);
    }

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 0.75rem 0;
        color: var(--gg-text);
        text-decoration: none;
        border-bottom: 1px solid rgba(139, 69, 193, 0.15);
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .step {
        padding-left: 3rem;
    }

    .step::before {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step h3 {
        font-size: 1.15rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .content {
        padding: 1.5rem 1rem 3rem;
    }

    .glass-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .cta-section {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .nav-bar, .breadcrumb, .cta-section, .related, .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .step::before {
        background: #333;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
