/* ========== Get InShape: Athlete Portal Theme (Apple Fitness Style) ========== */

body.athlete-theme {
    background-color: #000000 !important;
    color: #ffffff;

    /* Apple Dark Mode Surface Colors */
    --card-bg: #1c1c1e;
    --card-border: rgba(255, 255, 255, 0.05);
    /* Extremely subtle border */
    --surface-3: #2c2c2e;

    /* Neon Colors inspired by Apple Watch Activity Rings */
    --brand-neon: #a1ff00;
    /* Bright Green */
    --brand-pink: #ff2a6d;
    --brand-blue: #05d5ff;
    --brand: var(--brand-neon);
    /* Override main brand for athletes */
}

/* Base Wrapper */
body.athlete-theme .athlete-container {
    padding: 24px 16px 120px 16px;
    /* Extra bottom padding for mobile navbar */
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Typography Overrides */
body.athlete-theme .af-title-xl {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0 0 8px 0;
}

body.athlete-theme .af-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #8e8e93;
    /* Apple secondary gray */
    margin: 0;
}

/* UI Cards */
body.athlete-theme .af-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Big Action Button (Pill Mode) */
body.athlete-theme .af-btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--brand-neon);
    color: #000;
    font-weight: 800;
    font-size: 18px;
    padding: 22px;
    border-radius: 100px;
    /* Pill */
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 10px 30px rgba(161, 255, 0, 0.2);
    box-sizing: border-box;
}

body.athlete-theme .af-btn-primary:active {
    transform: scale(0.96);
    background: #adeb26;
}

/* Secondary Button Overlay (e.g. Logout, Leaderboard) */
body.athlete-theme .af-btn-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface-3);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 16px;
    border-radius: 100px;
    border: none;
    flex: 1;
    transition: transform 0.2s;
}

body.athlete-theme .af-btn-secondary:active {
    transform: scale(0.96);
}

/* Apple Watch Style Activity Ring (CSS Fake for UI feel) */
.af-ring-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.af-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--brand-neon) 75%, #333 0);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(161, 255, 0, 0.3);
}

.af-ring::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: #000;
    border-radius: 50%;
}

.af-ring-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.af-ring-val {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.af-ring-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Row */
.af-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.af-stat-box {
    background: var(--surface-3);
    border-radius: 16px;
    padding: 16px 10px;
    text-align: center;
}

.af-stat-box .lbl {
    font-size: 11px;
    color: #8e8e93;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.af-stat-box .val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.af-stat-box .unit {
    font-size: 12px;
    font-weight: 500;
    color: #888;
}

/* Inline Coach Message */
.af-coach-toast {
    background: linear-gradient(145deg, var(--surface-3) 0%, #151515 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.af-coach-toast img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.af-coach-toast .text {
    flex: 1;
    font-size: 14px;
    color: #e5e5ea;
    line-height: 1.4;
    font-weight: 500;
}