/* ============================================
   PHOTOGRAPHY PLANNER — Standalone stylesheet
   Loads after style.css (inherits CSS vars).
   ============================================ */

/* ============================================
   PAGE-LEVEL OVERRIDES
   ============================================ */
body.page-photography {
    background: var(--bg);
}

body.page-photography h1 {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 0.2rem;
}

.photo-subtitle {
    font-size: 0.9rem;
    color: var(--text-faint);
    margin: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================
   PHOTOGRAPHY SCORE CARD
   ============================================ */
.score-card {
    max-width: 560px;
    margin: 1.6rem auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.4s 0.05s ease both;
}

.score-ring {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-body);
    border: 3px solid var(--border);
    background: var(--surface-warm);
    transition: border-color 0.4s, color 0.4s;
}
.score-ring.score-excellent { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,0.07); }
.score-ring.score-good      { border-color: #84cc16; color: #84cc16; background: rgba(132,204,22,0.07); }
.score-ring.score-fair      { border-color: #94a3b8; color: #94a3b8; background: rgba(148,163,184,0.07); }
.score-ring.score-poor      { border-color: #64748b; color: #64748b; background: rgba(100,116,139,0.07); }

.score-info {
    flex: 1;
    min-width: 0;
}
.score-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}
.score-detail {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.score-cloud {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--surface-warm);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ============================================
   DAY TIMELINE
   ============================================ */
.timeline-wrap {
    max-width: 560px;
    margin: 1rem auto 0;
    animation: fadeUp 0.4s 0.1s ease both;
}

.timeline-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.4rem;
}

.timeline-bar {
    position: relative;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--border);
    overflow: hidden;
}

.timeline-segment {
    position: absolute;
    top: 0;
    height: 100%;
}
.tl-night        { background: #1e2235; }
.tl-blue-morning { background: linear-gradient(to right, #2d3561, #6366f1); }
.tl-golden-morning { background: linear-gradient(to right, #f59e0b, #fde68a); }
.tl-day          { background: linear-gradient(to right, #fde68a, #fff7d6, #fde68a); }
.tl-golden-evening { background: linear-gradient(to right, #fde68a, #f97316); }
.tl-blue-evening { background: linear-gradient(to right, #6366f1, #2d3561); }

.timeline-now {
    position: absolute;
    top: -3px;
    width: 2px;
    height: calc(100% + 6px);
    background: var(--text);
    border-radius: 1px;
    z-index: 2;
}
.timeline-now::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
}

.timeline-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    color: var(--text-faint);
    font-weight: 500;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.photo-section {
    max-width: 560px;
    margin: 1.6rem auto 0;
    animation: fadeUp 0.4s ease both;
}
.photo-section:nth-child(3) { animation-delay: 0.15s; }
.photo-section:nth-child(4) { animation-delay: 0.2s; }
.photo-section:nth-child(5) { animation-delay: 0.25s; }
.photo-section:nth-child(6) { animation-delay: 0.3s; }

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================
   TIME CARDS (Golden / Blue Hour)
   ============================================ */
.time-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.time-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1rem 0.9rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.time-card:hover { box-shadow: var(--shadow-md); }

/* Colored top accent strip */
.time-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.time-card--golden::before { background: linear-gradient(to right, #f59e0b, #fde68a, #f97316); }
.time-card--blue::before   { background: linear-gradient(to right, #6366f1, #818cf8, #4f46e5); }

.time-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.4rem;
}

.time-card--golden .time-card-label { color: #d97706; }
.time-card--blue   .time-card-label { color: #6366f1; }

.time-card-time {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 4vw, 1.65rem);
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.time-card-duration {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.time-card-countdown {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--surface-warm);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.time-card-countdown.is-now {
    background: rgba(245,158,11,0.12);
    color: #d97706;
    border-color: rgba(245,158,11,0.3);
}
.time-card-countdown.is-blue-now {
    background: rgba(99,102,241,0.10);
    color: #6366f1;
    border-color: rgba(99,102,241,0.25);
}
.time-card-countdown.is-done {
    opacity: 0.45;
}

/* ============================================
   MOON CARD
   ============================================ */
.moon-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.moon-phase-icon {
    font-size: 2.8rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.moon-phase-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.moon-illumination {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.moon-times {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.moon-time-item {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.moon-time-item strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.1rem;
}

/* ============================================
   CONDITIONS ROW
   ============================================ */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.condition-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem 0.6rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.condition-icon {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.condition-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.condition-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ============================================
   AFFILIATE BOX
   ============================================ */
.affiliate-box {
    max-width: 560px;
    margin: 1.6rem auto 0;
    background: linear-gradient(135deg, var(--surface-warm) 0%, var(--surface) 100%);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.4s 0.35s ease both;
}

.affiliate-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.affiliate-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.affiliate-text strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.affiliate-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}
.affiliate-link:hover {
    background: var(--accent-soft);
    color: #fff;
    transform: translateY(-1px);
}
.affiliate-link:visited { color: #fff; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .score-card { gap: 1rem; padding: 1.1rem 1.1rem; }
    .score-ring { width: 60px; height: 60px; font-size: 1.3rem; }
    .conditions-grid { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
    .condition-card { padding: 0.7rem 0.4rem; }
    .condition-value { font-size: 1rem; }
    .affiliate-box { flex-direction: column; text-align: center; gap: 0.6rem; }
}

@media (max-width: 359px) {
    .time-cards { grid-template-columns: 1fr; }
    .conditions-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */
@media (prefers-color-scheme: dark) {
    .tl-night { background: #0d0f1a; }
    .tl-day   { background: linear-gradient(to right, #fde68a44, #fde68a22, #fde68a44); }
    .timeline-bar { background: var(--border); }
}
