/**
 * Bra Calculator Guides - Styles
 * 
 * @package BraCalc Guides
 * @version 1.0.0
 */

/* ==========================================================================
   Base Container
   ========================================================================== */
.bracalc-guide {
    max-width: 900px;
    margin: 0 auto;
}

.guide-intro {
    text-align: center;
    margin-bottom: var(--space-8);
}

.guide-intro__text {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.guide-section {
    margin-bottom: var(--space-12);
}

.guide-section h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    color: var(--color-heading);
}

.guide-section h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.section-intro {
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.chart-nav,
.faq-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
}

.chart-nav__label,
.faq-nav__label {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.chart-nav__link,
.faq-nav__link {
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.chart-nav__link:hover,
.faq-nav__link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ==========================================================================
   Supplies Section (How to Measure)
   ========================================================================== */
.supplies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.supply-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4);
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
}

.supply-item__icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.supply-item__name {
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.supply-item__note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   Step Cards (How to Measure)
   ========================================================================== */
.step-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
}

.step-card__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 700;
}

.step-card__content {
    flex: 1;
}

.step-card__content h3 {
    margin-bottom: var(--space-3);
}

.step-card__instructions ol,
.step-card__instructions ul {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-5);
}

.step-card__instructions li {
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.step-card__tip {
    padding: var(--space-4);
    background: var(--color-primary-ultra-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
}

.step-card__tip--alt {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.step-card__tip strong {
    display: block;
    margin-bottom: var(--space-2);
}

.step-card__tip .example {
    font-family: monospace;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

@media (max-width: 600px) {
    .step-card {
        flex-direction: column;
    }
}

/* ==========================================================================
   Cup Chart (How to Measure)
   ========================================================================== */
.cup-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.cup-chart__row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
}

.cup-chart__diff {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.cup-chart__cup {
    font-weight: 700;
    color: var(--color-primary-dark);
}

/* ==========================================================================
   Size Example (How to Measure)
   ========================================================================== */
.size-example {
    background: var(--color-bg-soft);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-4) 0;
}

.size-example__calc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.size-example__item {
    text-align: center;
    padding: var(--space-3);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    min-width: 70px;
}

.size-example__item--result {
    background: var(--color-primary);
    color: white;
}

.size-example__item--result .size-example__label {
    color: rgba(255,255,255,0.8);
}

.size-example__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-1);
}

.size-example__value {
    font-size: var(--text-xl);
    font-weight: 700;
}

.size-example__operator {
    font-size: var(--text-xl);
    font-weight: 300;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Mistakes Grid (How to Measure)
   ========================================================================== */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.mistake-card {
    padding: var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.mistake-card--wrong {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.mistake-card__icon {
    font-size: var(--text-2xl);
    display: block;
    margin-bottom: var(--space-2);
}

.mistake-card h4 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.mistake-card p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* ==========================================================================
   Tables (Size Charts)
   ========================================================================== */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.size-table th,
.size-table td {
    padding: var(--space-3) var(--space-4);
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

.size-table th {
    background: var(--color-bg-soft);
    font-weight: 600;
    color: var(--color-heading);
    white-space: nowrap;
}

.size-table tbody tr:hover {
    background: var(--color-bg-soft);
}

.size-table tbody tr.highlight {
    background: rgba(212, 165, 165, 0.1);
}

.size-table .highlight-col {
    background: var(--color-primary-light);
    font-weight: 600;
}

.chart-note {
    padding: var(--space-4);
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

/* ==========================================================================
   Conversion Examples (Size Charts)
   ========================================================================== */
.conversion-examples {
    margin: var(--space-6) 0;
}

.conversion-examples h4 {
    margin-bottom: var(--space-3);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-3);
}

.example-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
}

.example-item__from,
.example-item__to {
    font-weight: 600;
}

.example-item__arrow {
    color: var(--color-primary);
}

.brand-note {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-top: var(--space-6);
}

.brand-note h4 {
    margin-bottom: var(--space-3);
}

.brand-note ul {
    margin: 0;
    padding-left: var(--space-5);
}

.brand-note li {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

/* ==========================================================================
   Sister Size Tips (Size Charts)
   ========================================================================== */
.sister-size-tips {
    margin-top: var(--space-6);
}

.sister-size-tips h4 {
    margin-bottom: var(--space-4);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.tip-card {
    padding: var(--space-4);
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    text-align: center;
}

.tip-card__icon {
    font-size: var(--text-2xl);
    display: block;
    margin-bottom: var(--space-2);
}

.tip-card h5 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.tip-card p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: 0;
}

/* ==========================================================================
   Fit Check Cards (Fitting Guide)
   ========================================================================== */
.fit-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.fit-check-card {
    padding: var(--space-5);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    position: relative;
}

.fit-check-card__number {
    position: absolute;
    top: -12px;
    left: var(--space-4);
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
}

.fit-check-card h3 {
    margin-top: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
}

.fit-check-card__pass,
.fit-check-card__fail {
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: var(--space-2);
}

.fit-check-card__pass {
    color: var(--color-success);
}

.fit-check-card__fail {
    color: var(--color-error);
}

/* ==========================================================================
   Technique Steps (Fitting Guide)
   ========================================================================== */
.technique-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.technique-step {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
}

.technique-step__number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
}

.technique-step h4 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.technique-step p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: 0;
}

.technique-note {
    padding: var(--space-4);
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    border-radius: var(--radius-md);
}

.technique-note p {
    margin: 0;
    font-size: var(--text-sm);
}

/* ==========================================================================
   Problem Accordion (Fitting Guide)
   ========================================================================== */
.problems-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.problem-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.problem-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.problem-item__header:hover {
    background: var(--color-bg-soft);
}

.problem-item__icon {
    font-size: var(--text-xl);
}

.problem-item__title {
    flex: 1;
    font-weight: 600;
    font-size: var(--text-base);
}

.problem-item__arrow {
    transition: transform 0.2s ease;
    color: var(--color-text-muted);
}

.problem-item.is-open .problem-item__arrow {
    transform: rotate(180deg);
}

.problem-item__body {
    display: none;
    padding: var(--space-4);
    padding-top: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
}

.problem-item.is-open .problem-item__body {
    display: block;
}

/* ==========================================================================
   Good Fit Checklist
   ========================================================================== */
.good-fit-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
}

.good-fit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: #047857;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--color-bg);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-heading);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--color-bg-soft);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--color-text-muted);
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 var(--space-4) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-answer ul,
.faq-answer ol {
    margin: var(--space-3) 0;
    padding-left: var(--space-5);
}

.faq-answer li {
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.guide-cta {
    text-align: center;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    border-radius: var(--radius-2xl);
    margin-top: var(--space-8);
}

.guide-cta h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.guide-cta p {
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
}

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