/* =============================================================================
   FSF Membership Manager Styles
   Fresh Start Fitness — Members Area
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Login Form
   ----------------------------------------------------------------------------- */

.fsf-login-wrap {
    max-width: 440px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

.fsf-login-error {
    background: #fff0f0;
    border-left: 4px solid #c0392b;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c0392b;
    border-radius: 4px;
}

.fsf-login-form .fsf-field {
    margin-bottom: 20px;
}

.fsf-login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.fsf-login-form input[type="email"],
.fsf-login-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.fsf-login-form input[type="email"]:focus,
.fsf-login-form input[type="password"]:focus {
    outline: none;
    border-color: #c8a97e;
    box-shadow: 0 0 0 3px rgba(200,169,126,0.15);
}

.fsf-remember label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.fsf-login-btn {
    width: 100%;
    padding: 14px;
    background: #3d3530;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

.fsf-login-btn:hover {
    background: #5a4e47;
}

.fsf-forgot {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #888;
}

.fsf-forgot a {
    color: #888;
    text-decoration: underline;
}


/* -----------------------------------------------------------------------------
   Workout Grid — Filter Bar
   ----------------------------------------------------------------------------- */

.fsf-workouts-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.fsf-filters {
    margin-bottom: 24px;
}

.fsf-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fsf-filter-row select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    flex: 1;
    min-width: 160px;
    transition: border-color 0.2s;
}

.fsf-filter-row select:focus {
    outline: none;
    border-color: #c8a97e;
}

.fsf-clear-filters {
    font-size: 13px;
    color: #888;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

.fsf-results-count {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}


/* ============================================
   Workout Grid — matching recipe card style
   ============================================ */

.fsf-workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 1.5rem;
}

.fsf-workout-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(5, 56, 107, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fsf-workout-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(5, 56, 107, 0.14);
}

/* Video thumbnail — same height as recipe image */
.fsf-video-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8f7f6;
    flex-shrink: 0;
}

.fsf-video-thumb iframe,
.fsf-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    pointer-events: none; /* click goes to card link, not iframe */
}

/* Card body — aqua bar matching recipes */
.fsf-workout-card .fsf-card-body {
    background: #86cecb;
    padding: 14px 16px 16px;
    flex: 1;
}

.fsf-workout-card .fsf-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #05386b;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Badges row — pill style on aqua */
.fsf-workout-card .fsf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fsf-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,0.35);
    color: #05386b;
}

/* Duration badge — slightly more prominent */
.fsf-badge-duration {
    background: #05386b;
    color: #fff;
}

/* Intensity badges */
.fsf-badge-intensity-all_abilities,
.fsf-badge-intensity-all_abilities_modifications {
    background: #5cdb95;
    color: #05386b;
}

.fsf-badge-intensity-intermediate,
.fsf-badge-intensity-intermediate_modifications {
    background: rgba(255,255,255,0.5);
    color: #05386b;
}

.fsf-badge-intensity-intermediate_advanced {
    background: #05386b;
    color: #fff;
}

/* Filter bar — matching recipe filter style */
.fsf-filters {
    margin-bottom: 1rem;
}

.fsf-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fsf-filter-row select {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 30px;
    border: 2px solid #05386b;
    color: #05386b;
    background: transparent;
    cursor: pointer;
    appearance: auto;
}

.fsf-filter-row select:focus {
    outline: none;
    border-color: #86cecb;
}

.fsf-clear-filters {
    font-size: 13px;
    color: #05386b;
    text-decoration: underline;
    padding: 7px 4px;
}

.fsf-results-count {
    font-size: 13px;
    color: #05386b;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.fsf-no-results {
    text-align: center;
    padding: 2rem;
    color: #05386b;
    opacity: 0.6;
}

/* Mobile */
@media (max-width: 600px) {
    .fsf-workout-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .fsf-video-thumb {
        height: 140px;
    }
    .fsf-filter-row select {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.fsf-video-thumb {
    margin-bottom: -4px; /* closes the gap between iframe and aqua bar */
}

/* =============================================================================
   Single Workout Page
   ============================================================================= */

.fsf-single-workout {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.fsf-back-link {
    margin-bottom: 20px;
}

.fsf-back-link a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.fsf-back-link a:hover {
    color: #3d3530;
}

.fsf-workout-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c2420;
    margin: 0 0 16px;
    line-height: 1.2;
}

.fsf-badges-single {
    margin-bottom: 24px;
}

.fsf-badges-single .fsf-badge {
    font-size: 13px;
    padding: 5px 12px;
}

/* Video embed - 16:9 */
.fsf-video-wrap {
    margin-bottom: 30px;
}

.fsf-video-embed {
    position: relative;
    padding-top: 56.25%;
    background: #f0ede8;
    border-radius: 10px;
    overflow: hidden;
}

.fsf-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Description and notes */
.fsf-workout-description {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 24px;
}

.fsf-workout-notes {
    background: #f9f7f5;
    border-left: 4px solid #c8a97e;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.fsf-workout-notes h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #2c2420;
}

.fsf-workout-notes p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.fsf-workout-programme {
    margin-bottom: 30px;
    font-size: 14px;
    color: #888;
}

.fsf-badge-programme {
    background: #f0ede8;
    color: #6b5744;
}

.fsf-badge-type {
    background: #ede8f5;
    color: #4a3d6b;
}

.fsf-back-link-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* Mobile */
@media (max-width: 600px) {
    .fsf-workout-title {
        font-size: 22px;
    }
}


/* --- Recent content --- */
.fsf-recent-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

.fsf-recent-section {
    margin-bottom: 3rem;
}

.fsf-recent-heading {
    font-size: 22px;
    font-weight: 700;
    color: #05386b;
    margin-bottom: 1.25rem;
}

.fsf-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 1rem;
}

.fsf-see-all {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #05386b;
    text-decoration: none;
    border-bottom: 2px solid #86cecb;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.fsf-see-all:hover {
    border-color: #05386b;
}

/* New badge */
.fsf-new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #5cdb95;
    color: #05386b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Recipe card image in recent grid */
.fsf-workout-card .fsf-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* === Programmes === */
.fsf-programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.fsf-programme-card {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: #86cecb;
    box-shadow: 0 2px 12px rgba(5, 56, 107, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fsf-programme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(5, 56, 107, 0.14);
}

.fsf-programme-locked {
    opacity: 0.6;
    cursor: default;
}

.fsf-programme-locked:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(5, 56, 107, 0.08);
}

.fsf-programme-card-body {
    padding: 20px;
}

.fsf-programme-title {
    font-size: 18px;
    font-weight: 700;
    color: #05386b;
    margin: 0 0 6px;
}

.fsf-programme-meta {
    font-size: 13px;
    color: #05386b;
    opacity: 0.7;
    margin: 0 0 8px;
}

.fsf-programme-desc {
    font-size: 14px;
    color: #05386b;
    margin: 0 0 10px;
}

.fsf-programme-lock {
    display: inline-block;
    font-size: 12px;
    background: rgba(255,255,255,0.4);
    color: #05386b;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* === Check-in form === */
.fsf-checkin-wrap {
    background: #f4f9f9;
    border-radius: 16px;
    padding: 24px;
    margin-top: 2rem;
}

.fsf-checkin-title {
    font-size: 18px;
    font-weight: 700;
    color: #05386b;
    margin: 0 0 16px;
}

.fsf-checkin-label {
    font-size: 14px;
    font-weight: 600;
    color: #05386b;
    margin-bottom: 10px;
}

.fsf-feeling-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.fsf-feeling-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #05386b;
    background: #fff;
    border: 2px solid #86cecb;
    border-radius: 30px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.fsf-feeling-opt:has(input:checked) {
    background: #86cecb;
    border-color: #05386b;
    font-weight: 600;
}

.fsf-checkin-wrap textarea {
    width: 100%;
    border: 2px solid #86cecb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #05386b;
    resize: vertical;
    margin-top: 6px;
}

.fsf-checkin-btn {
    margin-top: 16px;
    background: #05386b;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.fsf-checkin-btn:hover {
    background: #86cecb;
    color: #05386b;
}

.fsf-checkin-done {
    background: #e8f7f0;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 2rem;
}

.fsf-checkin-thanks {
    font-size: 16px;
    font-weight: 600;
    color: #05386b;
    margin: 0 0 6px;
}

.fsf-checkin-feeling {
    font-size: 14px;
    color: #05386b;
    margin: 0;
}

/* === Check-in dashboard === */
.fsf-dashboard-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.fsf-dashboard-heading {
    font-size: 22px;
    font-weight: 700;
    color: #05386b;
    margin: 2rem 0 1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #86cecb;
}

.fsf-dashboard-member {
    margin-bottom: 2rem;
}

.fsf-dashboard-member h3 {
    font-size: 16px;
    color: #05386b;
    margin-bottom: 8px;
}

.fsf-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fsf-dashboard-table th {
    background: #05386b;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
}

.fsf-dashboard-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0f0ef;
    color: #333;
}

.fsf-dashboard-table tr:nth-child(even) td {
    background: #f4f9f9;
}

/* === Programme page === */
.fsf-programme-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.fsf-programme-header {
    margin-bottom: 2.5rem;
}

.fsf-programme-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #05386b;
    margin: 0.5rem 0;
}

.fsf-programme-page-desc {
    font-size: 16px;
    color: #555;
    margin: 0.5rem 0 1rem;
}

.fsf-programme-stats {
    display: flex;
    gap: 8px;
    margin-top: 0.75rem;
}

/* === Week blocks === */
.fsf-week-block {
    margin-bottom: 3rem;
}

.fsf-week-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #86cecb;
}

.fsf-week-title {
    font-size: 22px;
    font-weight: 700;
    color: #05386b;
    margin: 0;
}

/* ── Join form ── */
.fsf-join-wrap { max-width: 480px; margin: 0 auto; padding: 20px 0; }
.fsf-join-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 24px rgba(5,56,107,0.08); }
.fsf-join-intro { color: #4b5563; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.fsf-join-btn {
    width: 100%; padding: 14px; background: #5cdb95; color: #05386b;
    border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.fsf-join-btn:hover { background: #48c982; }
.fsf-join-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.fsf-join-error { color: #dc2626; font-size: 0.85rem; margin-top: 8px; }
.fsf-join-secure { font-size: 0.78rem; color: #9ca3af; text-align: center; margin-top: 12px; }

/* ── Welcome page ── */
.fsf-welcome-wrap { max-width: 560px; margin: 0 auto; padding: 20px 0; }
.fsf-welcome-card { background: #fff; border-radius: 16px; padding: 40px 32px; box-shadow: 0 4px 24px rgba(5,56,107,0.08); text-align: center; }
.fsf-welcome-icon { font-size: 3rem; margin-bottom: 16px; }
.fsf-welcome-heading { color: #05386b; font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.fsf-welcome-text { color: #4b5563; font-size: 1rem; line-height: 1.6; margin-bottom: 24px; }
.fsf-welcome-next { background: #f0fdf7; border-radius: 12px; padding: 20px 24px; text-align: left; margin-bottom: 20px; }
.fsf-welcome-next h3 { color: #05386b; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.fsf-welcome-steps { color: #374151; font-size: 0.9rem; line-height: 1.7; padding-left: 20px; margin: 0; }
.fsf-welcome-steps li { margin-bottom: 6px; }
.fsf-welcome-steps a { color: #05386b; font-weight: 600; }
.fsf-welcome-btn {
    display: inline-block; background: #5cdb95; color: #05386b !important;
    padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 1rem;
    text-decoration: none !important; transition: background 0.2s; margin-top: 8px;
}
.fsf-welcome-btn:hover { background: #48c982; }
.fsf-welcome-spam { font-size: 0.8rem; color: #9ca3af; margin-top: 16px; }
.fsf-welcome-spam a { color: #05386b; }