/**
 * How-To Guides Styles
 * Styles for the public how-to guides pages
 */

/* Page Wrapper */
.guides-page-wrapper,
.guide-page-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary, #f9fafb);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.guides-hero {
    padding: 6rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--ci-primary, #667eea) 0%, var(--ci-primary-dark, #764ba2) 100%);
    color: white;
    margin-bottom: 2rem;
}

.guides-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guides-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filter Chips */
.guides-filters {
    display: flex;
    gap: 0.75rem;
    padding: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    border: 2px solid var(--ci-primary, #667eea);
    background: var(--bg-primary, white);
    color: var(--ci-primary, #667eea);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--ci-primary, #667eea);
    color: white;
}

.filter-chip .material-symbols-outlined {
    font-size: 18px;
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0 4rem;
}

/* Guide Cards */
.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary, white);
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.guide-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100, #f3f4f6);
}

.guide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-card-image img {
    transform: scale(1.05);
}

.guide-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100, #f3f4f6) 0%, var(--gray-200, #e5e7eb) 100%);
}

.guide-card-image-placeholder .material-symbols-outlined {
    font-size: 64px;
    color: var(--gray-400, #9ca3af);
}

.guide-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #111827);
    line-height: 1.4;
}

.guide-card-subtitle {
    color: var(--text-secondary, #6b7280);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

.guide-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light, #e5e7eb);
}

.guide-card-meta {
    display: flex;
    gap: 1rem;
}

.guide-steps-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

.guide-steps-count .material-symbols-outlined {
    font-size: 18px;
}

.guide-card-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--ci-primary, #667eea);
    font-weight: 500;
    font-size: 0.9rem;
}

.guide-card-link .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.guide-card:hover .guide-card-link .material-symbols-outlined {
    transform: translateX(4px);
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--blue-50, #eff6ff);
    color: var(--blue-700, #1d4ed8);
    margin-bottom: 0.75rem;
}

/* Empty State */
.guides-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.guides-empty .material-symbols-outlined {
    font-size: 64px;
    color: var(--gray-400, #9ca3af);
    margin-bottom: 1rem;
}

.guides-empty h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.guides-empty p {
    color: var(--text-muted);
}

/* ================================
   Single Guide Page Styles
   ================================ */

/* Breadcrumb */
.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
}

.guide-breadcrumb a {
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-breadcrumb a:hover {
    color: var(--ci-primary, #667eea);
}

.guide-breadcrumb .material-symbols-outlined {
    font-size: 16px;
    color: var(--gray-400, #9ca3af);
}

/* Guide Header */
.guide-header {
    padding: 2rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.guide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.guide-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.guide-meta-item .material-symbols-outlined {
    font-size: 18px;
}

/* Featured Image */
.guide-featured-image {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.guide-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

/* Guide Content */
.guide-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--bg-primary, white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light, #e5e7eb);
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary, #111827);
}

.guide-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.guide-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.guide-content p {
    margin-bottom: 1rem;
}

.guide-content ul,
.guide-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

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

.guide-content a {
    color: var(--ci-primary, #667eea);
}

.guide-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Steps Section */
.guide-steps {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.guide-steps-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary, #111827);
}

.guide-steps-title .material-symbols-outlined {
    font-size: 28px;
    color: var(--ci-primary, #667eea);
}

/* Step Progress */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--gray-200, #e5e7eb);
    z-index: 0;
    transform: translateY(-50%);
}

.step-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-200, #e5e7eb);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    z-index: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-indicator.active {
    background: var(--ci-primary, #667eea);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-indicator:hover {
    transform: scale(1.1);
}

/* Step Items */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-primary, white);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-light, #e5e7eb);
    transition: border-color 0.3s ease;
}

.step-item:hover {
    border-color: var(--ci-primary, #667eea);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ci-primary, #667eea);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #111827);
}

.step-image {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100, #f3f4f6);
}

.step-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.step-description {
    line-height: 1.7;
    color: var(--text-secondary, #4b5563);
}

.step-description p {
    margin-bottom: 0.75rem;
}

.step-description ul,
.step-description ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.step-action {
    margin-top: 1.5rem;
}

.step-action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--ci-primary, #667eea);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-action-button:hover {
    background: var(--ci-primary-dark, #5a67d8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-action-button .material-symbols-outlined {
    font-size: 18px;
}

/* Related Guides */
.related-guides {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
    border-top: 2px solid var(--border-light, #e5e7eb);
}

.related-guides-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #111827);
}

.related-guides-title .material-symbols-outlined {
    font-size: 24px;
    color: var(--ci-primary, #667eea);
}

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

.related-guide-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary, white);
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-guide-card:hover {
    border-color: var(--ci-primary, #667eea);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-guide-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-guide-placeholder {
    width: 80px;
    height: 80px;
    background: var(--gray-100, #f3f4f6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-guide-placeholder .material-symbols-outlined {
    font-size: 32px;
    color: var(--gray-400, #9ca3af);
}

.related-guide-info {
    flex: 1;
}

.related-guide-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #111827);
    line-height: 1.3;
}

.related-guide-info p {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.4;
}

/* Guide Footer */
.guide-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
    text-align: center;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-secondary {
    background: var(--gray-100, #f3f4f6);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--gray-200, #e5e7eb);
}

/* Responsive */
@media (max-width: 768px) {
    .guides-title {
        font-size: 2rem;
    }

    .guides-subtitle {
        font-size: 1rem;
    }

    .guides-filters {
        gap: 0.5rem;
    }

    .filter-chip {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 0 3rem;
    }

    .guide-title {
        font-size: 1.75rem;
    }

    .guide-content {
        padding: 1.5rem;
    }

    .step-item {
        flex-direction: column;
        padding: 1.5rem;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .step-progress {
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .step-indicator {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .guide-breadcrumb {
        padding: 5rem 0 1rem;
        font-size: 0.8rem;
    }

    .guide-header {
        padding: 1.5rem 0;
    }

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