/* ==========================================
   Fitness Match Planner Stylesheet
   Pastel version with original layout kept

   This file keeps the original structure,
   spacing, and layout while updating the
   colors to a softer pastel theme.
   ========================================== */

/* Main color palette */
:root {
    --bg: #f8f4ff;
    --surface: rgba(255, 255, 255, 0.72);
    --border: rgba(255, 255, 255, 0.72);
    --text: #3f3351;
    --muted: #6f6b80;

    --primary: #c4b5fd;
    --primary-dark: #a78bfa;
    --secondary: #f9a8d4;
    --accent: #93c5fd;
    --mint: #a7f3d0;
    --butter: #fde68a;

    --danger: #ef4444;
    --danger-bg: rgba(254, 202, 202, 0.9);
    --success-bg: rgba(187, 247, 208, 0.9);

    --shadow: 0 16px 32px rgba(167, 139, 250, 0.14);
}

/* Basic reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Main page background */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 168, 212, 0.28), transparent 30%),
        radial-gradient(circle at top right, rgba(147, 197, 253, 0.24), transparent 26%),
        radial-gradient(circle at bottom left, rgba(167, 243, 208, 0.24), transparent 24%),
        linear-gradient(135deg, #fdf2f8, #eef2ff 45%, #ecfeff 75%, #fef9c3 100%);
    min-height: 100vh;
    position: relative;
}

/* Soft grid overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

/* Decorative glow layer */
.page-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.page-background::before,
.page-background::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.45;
}

.page-background::before {
    width: 280px;
    height: 280px;
    top: 120px;
    right: 8%;
    background: rgba(196, 181, 253, 0.55);
}

.page-background::after {
    width: 240px;
    height: 240px;
    left: 6%;
    bottom: 140px;
    background: rgba(249, 168, 212, 0.35);
}

/* Link styling */
a {
    color: #8b5cf6;
    text-decoration: none;
}

a:hover {
    color: #7c3aed;
}

/* Page container */
.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    padding: 26px 0 8px;
}

/* Header layout */
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

/* Brand text area */
.brand-block {
    max-width: 640px;
}

/* Small label styling */
.brand-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.65);
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Accent eyebrow */
.eyebrow.accent {
    color: #6d28d9;
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.9), rgba(249, 168, 212, 0.6));
    border-color: rgba(255,255,255,0.9);
}

/* Main site title */
.site-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.9rem);
    letter-spacing: -0.04em;
    color: #5b21b6;
}

/* Subtitle */
.subtitle {
    margin: 10px 0 0;
    max-width: 700px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Navigation */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* Navigation buttons */
.main-nav a {
    color: #5b4b6b;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255,255,255,0.85);
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* Hover and active nav state */
.main-nav a:hover,
.main-nav a.active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: rgba(255,255,255,0.95);
    box-shadow: 0 10px 24px rgba(196, 181, 253, 0.24);
    color: white;
}

/* Main page spacing */
.page-shell {
    padding: 26px 0 48px;
}

/* Shared card styles */
.hero-card,
.card,
.mini-card,
.schedule-item,
.auth-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Soft highlight overlay */
.hero-card::before,
.card::before,
.mini-card::before,
.schedule-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255,255,255,0.38), transparent 28%, transparent 72%, rgba(255,255,255,0.18));
    pointer-events: none;
}

/* Hero section layout */
.hero-card {
    display: grid;
    grid-template-columns: 1.3fr 0.95fr;
    gap: 26px;
    padding: 34px;
    margin-bottom: 24px;
}

/* Compact hero layout */
.hero-card.compact {
    grid-template-columns: 1fr;
}

/* Headings */
.hero-card h2,
.card h3 {
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

/* Large heading */
.hero-card h2 {
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.02;
    max-width: 760px;
    color: #5b21b6;
}

/* Card heading */
.card h3 {
    font-size: 1.15rem;
    color: #7c3aed;
}

/* Lead text */
.lead {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #625f72;
}

/* Inner grids */
.hero-panel,
.summary-stats {
    display: grid;
    gap: 16px;
}

/* Small cards */
.mini-card {
    padding: 18px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 10px 24px rgba(147, 197, 253, 0.12);
}

/* Mini labels */
.mini-label {
    display: block;
    margin-bottom: 8px;
    color: #8b5cf6;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

/* Button row */
.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Buttons */
button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.85);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
    box-shadow: 0 12px 24px rgba(196, 181, 253, 0.28);
}

/* Button hover */
button:hover,
.button-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    color: white;
}

/* Secondary button */
.button-link.secondary {
    background: linear-gradient(135deg, var(--accent), var(--mint));
    color: #374151;
    box-shadow: 0 12px 24px rgba(147, 197, 253, 0.22);
}

/* Section grids */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Summary page layout */
.summary-grid {
    grid-template-columns: 0.95fr 1.35fr;
}

/* Card padding */
.card {
    padding: 24px;
}

/* List styling */
.clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* List items */
.clean-list li {
    position: relative;
    padding-left: 24px;
    margin: 0 0 13px;
    line-height: 1.7;
    color: #625f72;
}

/* Decorative bullet */
.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    box-shadow: 0 0 0 5px rgba(249, 168, 212, 0.14);
}

/* Form container */
.form-card {
    padding: 28px;
}

/* Form grid */
.form-grid {
    display: grid;
    gap: 18px;
}

/* Two-column form */
.form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Form groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */
.form-group label {
    font-size: 0.94rem;
    font-weight: 700;
    color: #6d28d9;
}

/* Form fields */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(196, 181, 253, 0.45);
    border-radius: 16px;
    padding: 14px 15px;
    font-size: 0.98rem;
    color: #374151;
    background: rgba(255,255,255,0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Textarea */
.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

/* Placeholders */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

/* Focus state */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.28);
}

/* Dropdown readability */
.form-group select {
    color: #374151;
    background: rgba(255,255,255,0.9);
}

.form-group select option {
    color: #374151;
    background: #ffffff;
}

/* Full-width field */
.span-two {
    grid-column: 1 / -1;
}

/* Checkbox grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 12px;
}

/* Checkbox pill */
.chip-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(196,181,253,0.45);
    background: rgba(255,255,255,0.82);
    color: #4b5563;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

/* Checkbox hover */
.chip-option:hover {
    transform: translateY(-1px);
    border-color: rgba(167,139,250,0.55);
    background: linear-gradient(135deg, rgba(196,181,253,0.18), rgba(249,168,212,0.18));
}

/* Checkbox color */
.chip-option input {
    accent-color: #a78bfa;
}

/* Error text */
.error {
    margin: 0;
    color: var(--danger);
    font-size: 0.9rem;
}

/* Alert box */
.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.65);
}

/* Success alert */
.success-box {
    color: #065f46;
    background: var(--success-bg);
}

/* Error alert */
.error-box {
    color: #991b1b;
    background: var(--danger-bg);
}

/* Narrow card */
.narrow-card {
    max-width: 620px;
}

/* Tag row */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Tag pills */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    color: #6d28d9;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(196,181,253,0.45);
    font-weight: 700;
}

/* Schedule list */
.schedule-list {
    display: grid;
    gap: 13px;
}

/* Schedule item */
.schedule-item {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.82);
}

/* Session day */
.session-day {
    margin: 0 0 4px;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 800;
}

/* Session title */
.session-name {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: #4b5563;
}

/* Session duration */
.session-duration {
    white-space: nowrap;
    padding: 9px 12px;
    border-radius: 999px;
    color: #374151;
    background: linear-gradient(135deg, var(--mint), var(--accent));
    border: 1px solid rgba(255,255,255,0.8);
    font-weight: 700;
}

/* Note box */
.note-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.74);
}

.note-box p {
    margin: 8px 0 0;
    line-height: 1.7;
    color: #625f72;
}

/* Profile details grid */
.details-grid {
    display: grid;
    gap: 12px;
}

/* Detail items */
.details-grid p {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(255,255,255,0.75);
    color: #625f72;
}

/* Strong text */
.details-grid strong,
strong {
    color: #6d28d9;
}

/* Footer */
.site-footer {
    padding: 0 0 30px;
}

/* Footer container */
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 24px;
    background: rgba(255,255,255,0.58);
    box-shadow: 0 12px 24px rgba(147, 197, 253, 0.14);
}

/* Footer title */
.footer-title {
    margin: 0 0 6px;
    font-weight: 800;
    color: #7c3aed;
}

/* Footer text */
.footer-copy,
.footer-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* Footer right section */
.footer-meta {
    display: grid;
    gap: 4px;
    text-align: right;
}

/* General paragraph color */
p {
    color: #625f72;
}

/* Responsive tablet */
@media (max-width: 940px) {
    .hero-card,
    .feature-grid,
    .summary-grid,
    .form-grid.two-col {
        grid-template-columns: 1fr;
    }

    .nav-wrap {
        align-items: flex-start;
    }
}

/* Responsive mobile */
@media (max-width: 600px) {
    .container {
        width: min(100%, calc(100% - 24px));
    }

    .nav-wrap,
    .hero-card,
    .card,
    .form-card,
    .footer-inner {
        padding: 20px;
    }

    .site-header h1 {
        font-size: 1.9rem;
    }

    .hero-card h2 {
        font-size: 2rem;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        text-align: left;
    }
}