/* static/css/pages/guide.css */
/* دُرج | راهنمای خرید */

.guide-page {
    min-height: 100vh;
    padding: var(--space-xl) var(--space-md);
    position: relative;
}

.guide-page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 15% 30%, var(--gold-500) 0%, transparent 45%),
        radial-gradient(circle at 80% 65%, var(--bg-dark) 0%, transparent 45%);
}

.guide-page__container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.guide-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.guide-header__title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
}

.guide-header__subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Intro ── */
.guide-intro {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--border-gold-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
}

.guide-intro__icon { font-size: 2rem; display: block; margin-bottom: var(--space-sm); color: var(--gold-500); }
.guide-intro p { color: var(--text-secondary); line-height: 1.9; max-width: 700px; margin: 0 auto; }

/* ── Section Title ── */
.guide-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* ── Roadmap / Timeline ── */
.guide-steps {
    position: relative;
    padding-right: 60px;
    margin-bottom: var(--space-2xl);
}

/* Central timeline line (right side in RTL) */
.guide-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 24px;
    width: 3px;
    background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
    border-radius: 2px;
}

/* Connecting lines from timeline to cards */
.guide-card {
    position: relative;
    margin-bottom: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-gold-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 32px;
    right: -36px;
    width: 36px;
    height: 2px;
    background: var(--gold-500);
}

.guide-card:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

/* Number badge on the timeline */
.guide-card__num {
    position: absolute;
    top: 18px;
    right: -54px;
    width: 36px;
    height: 36px;
    background: var(--gold-500);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-white);
}

.guide-card__icon { font-size: 1.8rem; margin-bottom: var(--space-sm); }
.guide-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-sm); }
.guide-card p { color: var(--text-secondary); line-height: 1.8; font-size: 0.9rem; }
.guide-card strong { color: var(--text-primary); }
.guide-card__note { display: block; margin-top: var(--space-sm); padding-top: var(--space-sm);     border-top: 1px dashed var(--border-card);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.guide-card__note strong { color: var(--text-primary); }

/* ── Store ── */
.guide-store {
    background: linear-gradient(135deg, color-mix(in srgb, var(--dark-jade) 4%, transparent), color-mix(in srgb, var(--gold-500) 4%, transparent));
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--border-gold-light);
}

.guide-store h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-sm); }
.guide-store p { color: var(--text-secondary); margin-bottom: var(--space-md); }
.guide-store__address { background: var(--bg-card); border-radius: var(--radius-md); padding: var(--space-md); display: inline-block; color: var(--text-primary); font-size: 0.9rem; line-height: 1.8; }

/* ── Size Guide ── */
.guide-size {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--border-gold-light);
    box-shadow: var(--shadow-sm);
}

.guide-size__methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.guide-size__method {
    background: var(--bg-inset);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.guide-size__method h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-sm); }
.guide-size__method ul { padding-right: 18px; }
.guide-size__method li { margin: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }

.guide-size__tips {
    background: color-mix(in srgb, var(--gold-500) 6%, transparent);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.guide-size__tips h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-sm); }
.guide-size__tips ul { padding-right: 18px; }
.guide-size__tips li { margin: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }

.guide-size__bracelet {
    padding-top: var(--space-lg);
    border-top: 2px dashed var(--border-card);
}

.guide-size__bracelet h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-sm); }
.guide-size__bracelet ul { padding-right: 18px; margin-bottom: var(--space-sm); }
.guide-size__bracelet li { margin: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }

/* ── Help ── */
.guide-help {
    background: var(--btn-bg);
    color: var(--btn-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.guide-help h3 { font-size: 1.3rem; margin-bottom: var(--space-sm); }
.guide-help p { opacity: 0.9; margin-bottom: var(--space-lg); }

.guide-help__items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.guide-help__items span {
    background: color-mix(in srgb, var(--btn-color) 15%, transparent);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

/* ── Back ── */
.guide-back { text-align: center; }
.guide-back a {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--btn-back-bg); color: var(--btn-back-color);
    padding: 12px 26px; border-radius: var(--radius-full);
    border: 1px solid color-mix(in srgb, var(--gold-500) 30%, transparent);
    text-decoration: none; font-weight: 600; line-height: 1.2;
    font-family: inherit; transition: all 0.3s;
}
.guide-back a svg { flex-shrink: 0; }
.guide-back a:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-hover-shadow);
    border-color: var(--gold-500);
}
.guide-back a:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .guide-page { padding: var(--space-md) var(--space-sm); }
    .guide-steps { padding-right: 48px; }
    .guide-steps::before { right: 18px; }
    .guide-card { padding: var(--space-md); }
    .guide-card::before { right: -28px; width: 28px; }
    .guide-card__num { right: -42px; width: 30px; height: 30px; font-size: 0.8rem; top: 22px; }
    .guide-size__methods { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .guide-header__title { font-size: 1.5rem; }
    .guide-section__title { font-size: 1.2rem; }
}