/* Passport Guide - Digital Sovereignty */

/* Hero */
.guide-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 1rem 3rem;
    text-align: center;
}

.guide-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.guide-hero .subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.guide-hero .context-line {
    font-size: 0.9rem;
    opacity: 0.65;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Difficulty Group Sections */
.guide-group {
    padding: 3.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.guide-group:nth-child(even) {
    background: #f8fafc;
}

.guide-group:last-of-type {
    border-bottom: none;
}

.guide-group-header {
    margin-bottom: 2rem;
}

.guide-group-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.guide-group-header p {
    color: #64748b;
    font-size: 1.05rem;
}

/* Difficulty Badges */
.difficulty-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.difficulty-badge.easy {
    background: #dcfce7;
    color: #166534;
}

.difficulty-badge.moderate {
    background: #dbeafe;
    color: #1e40af;
}

.difficulty-badge.committed {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-badge.limited {
    background: #fee2e2;
    color: #991b1b;
}

/* Product Cards Grid */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Individual Product Card */
.guide-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.guide-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guide-card-from {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.guide-card-from .from-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guide-card-from .from-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    font-weight: 500;
}

.guide-card-from .from-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.guide-card-alt {
    margin-bottom: 0.75rem;
}

.guide-card-alt .alt-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.25rem;
}

.guide-card-alt .alt-origin {
    font-size: 0.8rem;
    color: #64748b;
}

.guide-card-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Step-by-step guide link (Phase 2) */
.guide-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}

.guide-card-link:hover {
    text-decoration: underline;
}

/* Village Badge */
.village-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 0.5rem;
}

.village-badge-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.village-badge-text {
    font-size: 0.85rem;
    color: #0f766e;
    line-height: 1.5;
    font-weight: 500;
}

/* "No Clear Alternative" cards */
.guide-card.limited-card {
    border-color: #fecaca;
    background: #fffbeb;
}

.guide-card.limited-card .guide-card-alt .alt-name {
    color: #b45309;
}

/* Village Summary Section */
.village-summary {
    padding: 3.5rem 1rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
}

.village-summary h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.village-summary .summary-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.village-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.village-grid-item {
    background: white;
    border: 1px solid #d1fae5;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.village-grid-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.35rem;
}

.village-grid-item p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.village-positioning {
    max-width: 700px;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #d1fae5;
    margin-bottom: 2rem;
}

.village-positioning p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
    margin: 0;
}

.village-cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.village-cta-row .btn-primary {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.village-cta-row .btn-primary:hover {
    opacity: 0.9;
}

.village-cta-row .price-note {
    font-size: 0.9rem;
    color: #64748b;
}

/* ========================================
   Guide Detail Pages (Phase 2)
   ======================================== */

/* Breadcrumb */
.guide-breadcrumb {
    padding: 1rem 1rem 0;
    max-width: 780px;
    margin: 0 auto;
}

.guide-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0f766e;
    text-decoration: none;
}

.guide-breadcrumb a:hover {
    text-decoration: underline;
}

.guide-breadcrumb svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Detail Hero (smaller than overview hero) */
.guide-detail-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 2.5rem 1rem 2rem;
    text-align: center;
}

.guide-detail-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.guide-detail-hero .subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Meta badges (time + difficulty) */
.guide-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 500;
}

.guide-meta-item svg {
    width: 16px;
    height: 16px;
    color: #64748b;
}

/* Step containers */
.guide-steps {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.guide-step {
    margin-bottom: 2.5rem;
}

.guide-step-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.guide-step-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.guide-step-time {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.guide-step p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.guide-step ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-step ol li {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.35rem;
}

/* "What you should see" verify callout */
.guide-verify {
    border-left: 3px solid #14b8a6;
    background: #f0fdfa;
    padding: 0.85rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1rem 0;
}

.guide-verify-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f766e;
    margin-bottom: 0.25rem;
}

.guide-verify p {
    font-size: 0.9rem;
    color: #115e59;
    margin: 0;
    line-height: 1.5;
}

/* Troubleshooting section */
.guide-troubleshooting {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.guide-troubleshooting h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.guide-trouble-item {
    margin-bottom: 1.25rem;
}

.guide-trouble-item dt {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.guide-trouble-item dd {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Next steps section */
.guide-next-steps {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.guide-next-steps h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.guide-next-steps ul {
    list-style: none;
    padding: 0;
}

.guide-next-steps ul li {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.guide-next-steps ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0f766e;
    font-weight: 600;
}

/* Learn More pages (non-step content sections) */
.guide-sections {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.guide-section {
    margin-bottom: 2.5rem;
}

.guide-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.guide-section p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.guide-section ul {
    list-style: none;
    padding: 0;
}

.guide-section ul li {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.guide-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0f766e;
    font-weight: 600;
}

.guide-section .highlight-box {
    border-left: 3px solid #14b8a6;
    background: #f0fdfa;
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1rem 0;
}

.guide-section .highlight-box p {
    font-size: 0.92rem;
    color: #115e59;
    margin: 0;
}

.guide-section .limitation-box {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1rem 0;
}

.guide-section .limitation-box p {
    font-size: 0.92rem;
    color: #92400e;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 1.75rem;
    }

    .guide-hero .subtitle {
        font-size: 1rem;
    }

    .guide-group {
        padding: 2.5rem 1rem;
    }

    .guide-group-header h2 {
        font-size: 1.4rem;
    }

    .guide-cards {
        grid-template-columns: 1fr;
    }

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

    .village-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .guide-detail-hero .subtitle {
        font-size: 0.95rem;
    }

    .guide-meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .guide-step-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .guide-hero {
        padding: 2.5rem 1rem 2rem;
    }

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