/* Kaloria Help Center Styles */
/* Extends main.css with help-specific components */

:root {
    --help-bg: #FAFAFA;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --code-bg: #F5F5F5;
    --success-color: #4CAF50;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    --danger-color: #F44336;
}

/* Smooth anchor scrolling with header offset */
h2[id], h3[id] {
    scroll-margin-top: 120px;
}

html {
    scroll-padding-top: 120px;
}

/* Help-specific typography */
.help-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.help-hero {
    text-align: center;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.help-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.help-hero .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.help-search {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
}

.help-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.help-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.help-search i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Help Categories Grid */
.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card.secondary .category-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, #FF8555 100%);
}

.category-card.info .category-icon {
    background: linear-gradient(135deg, var(--info-color) 0%, #42A5F5 100%);
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.category-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-card .article-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Article Content */
.article-header {
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.article-meta i {
    margin-right: 0.3rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: var(--primary);
}

/* Quick Summary Box */
.quick-summary {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.03) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.quick-summary h3 {
    margin-top: 0 !important;
    font-size: 1.2rem !important;
    color: var(--primary);
}

.quick-summary ul {
    margin-bottom: 0;
}

/* Step Cards */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h4 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.2rem !important;
}

.step-content p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.screenshot-placeholder:hover {
    border-color: var(--primary);
    background: rgba(76, 175, 80, 0.03);
}

.screenshot-placeholder i {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.screenshot-placeholder p {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.screenshot-placeholder small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.screenshot-placeholder .tech-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--info-color);
}

/* Actual Screenshot Display */
.screenshot-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.screenshot-container {
    text-align: center;
    margin: 2rem 0;
}

.screenshot-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.screenshot-caption {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Phone Mockup */
.phone-mockup-wrapper {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1rem;
}

.phone-mockup-border {
    border: 8px solid #1a1a1a;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.callout-tip {
    background: rgba(76, 175, 80, 0.08);
    border-color: var(--success-color);
}

.callout-tip .callout-icon {
    color: var(--success-color);
}

.callout-info {
    background: rgba(33, 150, 243, 0.08);
    border-color: var(--info-color);
}

.callout-info .callout-icon {
    color: var(--info-color);
}

.callout-warning {
    background: rgba(255, 152, 0, 0.08);
    border-color: var(--warning-color);
}

.callout-warning .callout-icon {
    color: var(--warning-color);
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.callout-header i {
    font-size: 1.2rem;
}

.callout p:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-200);
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.related-card h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.related-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Section */
.help-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
}

.help-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.help-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.help-cta .btn-white {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.help-cta .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Table of Contents */
.toc {
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc h4 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--primary);
}

/* Back to Top Button */
.help-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.help-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.help-back-to-top:hover {
    transform: translateY(-4px);
    background: var(--primary-dark);
}

/* Video Embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tag {
    background: var(--gray-100);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .help-hero h1 {
        font-size: 2rem;
    }

    .help-hero p {
        font-size: 1rem;
    }

    .help-categories {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .step-item {
        flex-direction: column;
    }

    .step-number {
        align-self: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .help-cta {
        padding: 2rem 1.5rem;
    }

    .help-cta h3 {
        font-size: 1.5rem;
    }

    .help-back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Print Styles */
@media print {
    .header, .breadcrumbs, .help-cta, .related-articles, .help-back-to-top {
        display: none;
    }

    .screenshot-placeholder {
        border-style: solid;
    }
}
