/* =============================================================================
   YogaRabble — product UI stylesheet.

   Used on every page EXCEPT the marketing homepage (which layers its own
   wood-texture hero on top). Product UI is minimal, fast, clean — off-white
   surface with white cards.
   ============================================================================= */

/* Design tokens ---------------------------------------------------------------*/
:root {
    --color-primary: #2FA4A9;       /* teal — primary CTA, links, active states */
    --color-primary-dark: #1A6B6F;
    --color-accent: #F05A3E;        /* coral — CTA emphasis */
    --color-accent-dark: #C9462C;
    --color-bg: #F8F7F4;            /* off-white app base */
    --color-card: #FFFFFF;
    --color-border: #E5E5E5;
    --color-text: #1F2933;
    --color-text-muted: #6B7280;

    --color-wood-light: #E6C58F;
    --color-wood-mid: #D4A96A;

    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 system-ui, sans-serif;

    --max-width-content: 1100px;
    --max-width-narrow: 560px;
}

/* Reset -----------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }

/* Typography -----------------------------------------------------------------*/
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--color-text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--color-text-muted); }
.small { font-size: .875rem; }
.text-center { text-align: center; }

/* Layout ---------------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 1rem;
}
.narrow {
    max-width: var(--max-width-narrow);
}

main.site-main {
    flex: 1 0 auto;
    padding: 2rem 0 4rem;
}

/* Nav -------------------------------------------------------------------------*/
.site-nav {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: .75rem 0;
    box-shadow: var(--shadow-sm);
}
.site-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-nav .brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-text);
    font-weight: 600;
}
.site-nav .brand:hover { text-decoration: none; }
.site-nav .brand img {
    height: 32px;
    width: auto;
}
.site-nav .brand-text {
    font-size: 1.05rem;
}
.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-nav .nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: .95rem;
}
.site-nav .nav-links a:hover { color: var(--color-primary); text-decoration: none; }

/* Card ------------------------------------------------------------------------*/
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1.5rem; }
.card h1, .card h2 { margin-top: 0; }

/* Auth card (signup, login, forgot, reset, verify) ---------------------------*/
.auth-wrap {
    max-width: var(--max-width-narrow);
    margin: 2rem auto;
    padding: 0 1rem;
}
.auth-wrap .card h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.auth-wrap .card > .muted { margin-bottom: 1.5rem; }

/* Forms ----------------------------------------------------------------------*/
.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    font-weight: 500;
    margin-bottom: .35rem;
    font-size: .95rem;
}
.field .hint {
    font-size: .825rem;
    color: var(--color-text-muted);
    margin-top: .25rem;
}

.field-row { display: flex; gap: .75rem; }
.field-row .field { flex: 1; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    padding: .625rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-card);
    color: var(--color-text);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(47, 164, 169, 0.15);
}
input[disabled], select[disabled], textarea[disabled],
button[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.checkbox {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    font-size: .9rem;
    line-height: 1.4;
}
.checkbox input { margin-top: .2rem; }

/* Buttons --------------------------------------------------------------------*/
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: .625rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: background 120ms ease, transform 60ms ease;
    text-decoration: none;
    text-align: center;
}
.btn:hover { background: var(--color-primary-dark); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }

.btn-block { display: block; width: 100%; }

.btn-accent { background: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-bg); color: var(--color-text); }

.btn-sm { font-size: .875rem; padding: .4rem .9rem; }

/* Alerts / flashes ----------------------------------------------------------*/
.alert {
    border-radius: var(--radius-md);
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    font-size: .95rem;
}
.alert-error   { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.alert-success { background: #D1FAE5; border-color: #6EE7B7; color: #065F46; }
.alert-info    { background: #E0F2F1; border-color: #9AD4D6; color: #0F5256; }
.alert-warning { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }

/* Footer ---------------------------------------------------------------------*/
.site-footer {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    margin-top: 3rem;
    color: var(--color-text-muted);
    font-size: .875rem;
}
.site-footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}
.site-footer a { color: var(--color-text-muted); }
.site-footer a:hover { color: var(--color-primary); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Utility spacing -----------------------------------------------------------*/
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Mobile tweaks -------------------------------------------------------------*/
@media (max-width: 540px) {
    h1 { font-size: 1.6rem; }
    .card { padding: 1.25rem; }
    .field-row { flex-direction: column; gap: 0; }
    .site-nav .nav-links { gap: .5rem; }
    .site-nav .brand-text { display: none; }
}
