/* ============================================================
   Period Cycle Calculator — GoAndUse Brand Theme
   Primary: #ff6a59  |  Soft BG: #fff3d6
   Light surface: #f5f5fa  |  Dark text: #292931
   ============================================================ */

.pcc-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pcc-wrapper {
    --pcc-primary:      #ff6a59;
    --pcc-primary-dark: #e85040;
    --pcc-primary-light:#fff0ee;
    --pcc-bg:           #fff3d6;
    --pcc-surface:      #f5f5fa;
    --pcc-white:        #ffffff;
    --pcc-text:         #292931;
    --pcc-muted:        #6b6b7a;
    --pcc-border:       rgba(41,41,49,0.10);
    --pcc-green:        #2da44e;
    --pcc-blue:         #1565c0;
    --pcc-purple:       #7c3aed;
    --pcc-yellow:       #f59e0b;
    --pcc-radius:       16px;
    --pcc-radius-sm:    10px;
    --pcc-shadow:       0 4px 24px rgba(255,106,89,0.10);
    --pcc-shadow-md:    0 8px 32px rgba(41,41,49,0.10);

    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--pcc-text);
    background: transparent;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px 56px;
}

/* ── Hero ── */
.pcc-hero {
    text-align: center;
    padding: 44px 28px 36px;
    background: linear-gradient(135deg, var(--pcc-primary) 0%, #ff9a6c 100%);
    border-radius: var(--pcc-radius);
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.pcc-hero::before {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    pointer-events: none;
}

.pcc-hero::after {
    content: '';
    position: absolute;
    top: -30px; left: -30px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.pcc-badge {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3);
}

.pcc-hero-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
}

.pcc-hero-sub {
    color: rgba(255,255,255,0.90);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Card ── */
.pcc-card {
    background: var(--pcc-white);
    border: 1px solid var(--pcc-border);
    border-radius: var(--pcc-radius);
    padding: 28px 26px;
    margin-bottom: 20px;
    box-shadow: var(--pcc-shadow-md);
}

.pcc-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--pcc-text);
}

/* ── Form ── */
.pcc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 560px) {
    .pcc-form-grid { grid-template-columns: 1fr; }
}

.pcc-field { display: flex; flex-direction: column; gap: 8px; }

.pcc-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--pcc-text);
}

.pcc-input-unit-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pcc-input {
    width: 100%;
    background: var(--pcc-surface);
    border: 1.5px solid var(--pcc-border);
    border-radius: var(--pcc-radius-sm);
    color: var(--pcc-text);
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.pcc-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
}

.pcc-input:focus {
    border-color: var(--pcc-primary);
    background: var(--pcc-white);
    box-shadow: 0 0 0 3px rgba(255,106,89,0.15);
}

.pcc-input-unit-wrap .pcc-input { padding-right: 52px; }

.pcc-unit {
    position: absolute;
    right: 14px;
    font-size: 13px;
    color: var(--pcc-muted);
    font-weight: 600;
    pointer-events: none;
}

.pcc-hint {
    font-size: 11px;
    color: var(--pcc-muted);
    margin-top: 2px;
}

/* ── Buttons ── */
.pcc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--pcc-primary) 0%, #ff9a6c 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: var(--pcc-radius-sm);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, opacity .2s;
    box-shadow: 0 4px 20px rgba(255,106,89,0.35);
    letter-spacing: 0.3px;
    font-family: inherit;
}

.pcc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,106,89,0.45);
    opacity: 0.93;
}

.pcc-btn:active { transform: translateY(0); }

/* Reset / Reload button */
.pcc-btn--reset {
    background: var(--pcc-white);
    border: 2px solid var(--pcc-primary);
    color: var(--pcc-primary);
    box-shadow: none;
    width: auto;
    min-width: 180px;
    padding: 12px 24px;
    font-size: 15px;
}

.pcc-btn--reset:hover {
    background: var(--pcc-primary-light);
    color: var(--pcc-primary);
    box-shadow: 0 4px 16px rgba(255,106,89,0.18);
    transform: translateY(-2px);
}

/* PDF Download button */
.pcc-btn--pdf {
    background: #2c3338;
    box-shadow: 0 4px 20px rgba(21,101,192,0.30);
    width: auto;
    min-width: 200px;
    padding: 12px 24px;
    font-size: 15px;
}

.pcc-btn--pdf:hover {
    box-shadow: 0 8px 28px rgba(21,101,192,0.40);
    transform: translateY(-2px);
}

.pcc-btn--pdf:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Error ── */
.pcc-error {
    margin-top: 12px;
    padding: 11px 16px;
    background: #fff0ee;
    border: 1.5px solid rgba(255,106,89,0.35);
    border-radius: var(--pcc-radius-sm);
    color: var(--pcc-primary-dark);
    font-size: 13px;
    font-weight: 500;
}

/* ── Summary Banner ── */
.pcc-summary-banner {
    background: var(--pcc-bg);
    border: 1.5px solid rgba(255,106,89,0.22);
    border-left: 4px solid var(--pcc-primary);
    border-radius: var(--pcc-radius-sm);
    padding: 16px 20px;
    margin-bottom: 22px;
    font-size: 15px;
    color: var(--pcc-text);
    line-height: 1.65;
}

.pcc-summary-banner strong { color: var(--pcc-primary); }

/* ── Stat Cards ── */
.pcc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

@media (max-width: 480px) {
    .pcc-stats-grid { grid-template-columns: 1fr; }
}

.pcc-stat-card {
    border-radius: var(--pcc-radius);
    padding: 24px 20px;
    border: 1.5px solid transparent;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    background: var(--pcc-white);
    box-shadow: 0 2px 12px rgba(41,41,49,0.07);
}

.pcc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(41,41,49,0.12);
}

.pcc-stat--period    { border-color: rgba(255,106,89,0.30); background: #fff8f7; }
.pcc-stat--ovulation { border-color: rgba(124,58,237,0.25); background: #faf5ff; }
.pcc-stat--fertile   { border-color: rgba(45,164,78,0.25);  background: #f0fff4; }
.pcc-stat--pregnancy { border-color: rgba(21,101,192,0.25); background: #f0f6ff; }

.pcc-stat-icon { font-size: 30px; margin-bottom: 10px; }
.pcc-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pcc-muted);
    margin-bottom: 8px;
    font-weight: 700;
}
.pcc-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--pcc-text);
    margin-bottom: 4px;
    line-height: 1.25;
}
.pcc-stat-value--sm { font-size: 14px; }
.pcc-stat-sub { font-size: 12px; color: var(--pcc-muted); }

/* ── Detailed Report ── */
.pcc-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .pcc-report-grid { grid-template-columns: 1fr; }
}

.pcc-report-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--pcc-surface);
    border: 1px solid var(--pcc-border);
    border-radius: var(--pcc-radius-sm);
    padding: 14px 16px;
}

.pcc-report-key {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pcc-muted);
    font-weight: 700;
}

.pcc-report-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--pcc-text);
}

.pcc-report-val--accent { color: var(--pcc-primary);  }
.pcc-report-val--green  { color: var(--pcc-green);    }
.pcc-report-val--blue   { color: var(--pcc-blue);     }
.pcc-report-val--purple { color: var(--pcc-purple);   }

/* ── Timeline ── */
.pcc-timeline {
    display: flex;
    gap: 3px;
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
}

.pcc-tl-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    cursor: default;
    transition: opacity .2s;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 5px;
    color: #fff;
}

.pcc-tl-seg:hover { opacity: 0.80; }
.pcc-tl-seg--period     { background: var(--pcc-primary); }
.pcc-tl-seg--follicular { background: #c5c5d4; color: var(--pcc-text); }
.pcc-tl-seg--fertile    { background: var(--pcc-green); }
.pcc-tl-seg--ovulation  { background: var(--pcc-yellow); color: var(--pcc-text); }
.pcc-tl-seg--luteal     { background: var(--pcc-purple); }

.pcc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pcc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--pcc-muted);
    font-weight: 500;
}

.pcc-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pcc-dot--period     { background: var(--pcc-primary); }
.pcc-dot--follicular { background: #c5c5d4; }
.pcc-dot--fertile    { background: var(--pcc-green);   }
.pcc-dot--ovulation  { background: var(--pcc-yellow);  }
.pcc-dot--luteal     { background: var(--pcc-purple);  }

/* ── 3-Month Forecast ── */
.pcc-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 480px) {
    .pcc-forecast-grid { grid-template-columns: 1fr; }
}

.pcc-forecast-card {
    background: var(--pcc-surface);
    border: 1.5px solid var(--pcc-border);
    border-radius: var(--pcc-radius-sm);
    padding: 18px;
    text-align: center;
    transition: box-shadow .2s, border-color .2s;
}

.pcc-forecast-card:hover {
    box-shadow: 0 4px 16px rgba(255,106,89,0.12);
    border-color: rgba(255,106,89,0.28);
}

.pcc-forecast-month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pcc-muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.pcc-forecast-date {
    font-size: 16px;
    font-weight: 800;
    color: var(--pcc-primary);
    margin-bottom: 5px;
}

.pcc-forecast-day {
    font-size: 12px;
    color: var(--pcc-muted);
}

/* ── Pregnancy Meter ── */
.pcc-meter-wrap { margin-bottom: 16px; }

.pcc-meter-track {
    height: 24px;
    background: var(--pcc-surface);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1.5px solid var(--pcc-border);
}

.pcc-meter-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #1565c0 0%, #2da44e 35%, #f59e0b 65%, #ff6a59 100%);
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    width: 0%;
}

.pcc-meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--pcc-muted);
    font-weight: 600;
}

.pcc-meter-desc {
    font-size: 14px;
    color: var(--pcc-muted);
    line-height: 1.6;
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--pcc-surface);
    border-radius: var(--pcc-radius-sm);
}

.pcc-meter-desc strong { color: var(--pcc-primary); }

/* ── Tips ── */
.pcc-tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .pcc-tips-grid { grid-template-columns: 1fr; }
}

.pcc-tip {
    background: var(--pcc-surface);
    border: 1px solid var(--pcc-border);
    border-radius: var(--pcc-radius-sm);
    padding: 14px;
    font-size: 13px;
    color: var(--pcc-muted);
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pcc-tip-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── Disclaimer ── */
.pcc-disclaimer {
    background: var(--pcc-bg);
    border: 1.5px solid rgba(245,158,11,0.30);
    border-left: 4px solid var(--pcc-yellow);
    border-radius: var(--pcc-radius-sm);
    padding: 14px 18px;
    font-size: 13px;
    color: var(--pcc-muted);
    line-height: 1.55;
    margin-top: 20px;
}

.pcc-disclaimer strong { color: #92620a; }

/* ── Action Row (Reset + Reload) ── */
.pcc-action-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ── FAQ ── */
.pcc-faq-list { display: flex; flex-direction: column; gap: 10px; }

.pcc-faq-item {
    background: var(--pcc-surface);
    border: 1.5px solid var(--pcc-border);
    border-radius: var(--pcc-radius-sm);
    overflow: hidden;
}

.pcc-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: none;
    border: none;
    color: var(--pcc-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    transition: color .2s;
    font-family: inherit;
}

.pcc-faq-q:hover { color: var(--pcc-primary); }

.pcc-faq-icon {
    font-size: 22px;
    flex-shrink: 0;
    color: var(--pcc-muted);
    transition: transform .3s;
    font-weight: 300;
    line-height: 1;
}

.pcc-faq-item.pcc-open .pcc-faq-icon {
    transform: rotate(45deg);
    color: var(--pcc-primary);
}

.pcc-faq-a {
    display: none;
    padding: 14px 18px 18px;
    font-size: 13px;
    color: var(--pcc-muted);
    line-height: 1.65;
    border-top: 1px solid var(--pcc-border);
}

.pcc-faq-item.pcc-open .pcc-faq-a { display: block; }

/* ── Animations ── */
@keyframes pccFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pcc-results { animation: pccFadeUp .4s ease both; }
.pcc-stat-card { animation: pccFadeUp .4s ease both; }
.pcc-stat-card:nth-child(1) { animation-delay: .05s; }
.pcc-stat-card:nth-child(2) { animation-delay: .10s; }
.pcc-stat-card:nth-child(3) { animation-delay: .15s; }
.pcc-stat-card:nth-child(4) { animation-delay: .20s; }
