/* =========================================================
   TaskTweaky v5 — v4 Layout Supplement (tt-v4.css)
   Provides: CSS variables, container, tt-btn, tt-header,
             tt-features grid, tt-process, tt-cta-strip,
             dashboard page layouts, utility classes.
   Loaded after main.css and page-style.css.
   ========================================================= */

:root {
    --tt-primary:   #1e40af;
    --tt-primary-d: #1e3a8a;
    --tt-primary-l: #dbeafe;
    --tt-accent:    #7c3aed;
    --tt-green:     #16a34a;
    --tt-orange:    #ea580c;
    --tt-red:       #dc2626;
    --tt-gray:      #374151;
    --tt-gray-l:    #f9fafb;
    --tt-border:    #e5e7eb;
    --tt-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tt-radius:    10px;
    --tt-shadow:    0 2px 8px rgba(0,0,0,.08);
}

/* ── Container ── */
.tt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.tt-container--narrow { max-width: 800px; }

/* ── Buttons ── */
.tt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all .2s;
    line-height: 1.4;
    white-space: nowrap;
}
.tt-btn--primary { background: var(--tt-primary); color: #fff; border-color: var(--tt-primary); }
.tt-btn--primary:hover { background: var(--tt-primary-d); border-color: var(--tt-primary-d); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,64,175,.3); }
.tt-btn--outline  { background: transparent; color: var(--tt-primary); border-color: var(--tt-primary); }
.tt-btn--outline:hover  { background: var(--tt-primary-l); }
.tt-btn--ghost    { background: transparent; color: #6b7280; border-color: transparent; }
.tt-btn--sm       { padding: 7px 14px; font-size: 13px; }
.tt-btn--lg       { padding: 14px 30px; font-size: 16px; }

/* ── v4 Hero (for submit-task / dashboard pages) ── */
.tt-hero {
    background: linear-gradient(135deg, var(--tt-primary) 0%, var(--tt-accent) 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.tt-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; margin: 0 0 16px; line-height: 1.1; }
.tt-hero p  { font-size: 18px; opacity: .85; max-width: 560px; margin: 0 auto 32px; }
.tt-hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tt-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

/* ── Features Grid ── */
.tt-features { padding: 72px 0; background: var(--tt-gray-l); }
.tt-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.tt-feature-card {
    background: #fff;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    padding: 28px;
    box-shadow: var(--tt-shadow);
    transition: transform .2s, box-shadow .2s;
}
.tt-feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.tt-feature-card__icon { font-size: 36px; margin-bottom: 14px; }
.tt-feature-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.tt-feature-card p  { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.6; }

/* ── Section Heading ── */
.tt-section-head { text-align: center; }
.tt-section-head h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.tt-section-head p  { color: #6b7280; max-width: 520px; margin: 0 auto; }

/* ── Process Steps ── */
.tt-process { padding: 72px 0; }
.tt-process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
}
.tt-step { text-align: center; }
.tt-step__num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--tt-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.tt-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tt-step p  { font-size: 14px; color: #6b7280; }

/* ── CTA Strip ── */
.tt-cta-strip {
    background: var(--tt-primary);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.tt-cta-strip h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.tt-cta-strip p  { opacity: .85; margin-bottom: 28px; }
.tt-cta-strip .tt-btn--primary { background: #fff; color: var(--tt-primary); border-color: #fff; }
.tt-cta-strip .tt-btn--primary:hover { background: var(--tt-primary-l); border-color: var(--tt-primary-l); }
.tt-cta-strip .tt-btn--outline  { border-color: rgba(255,255,255,.5); color: #fff; }
.tt-cta-strip .tt-btn--outline:hover { background: rgba(255,255,255,.1); }

/* ── Breadcrumb ── */
.tt-breadcrumb { padding: 12px 0; font-size: 13px; color: #9ca3af; border-bottom: 1px solid var(--tt-border); }
.tt-breadcrumb a { color: var(--tt-primary); }
.tt-breadcrumb span { margin: 0 6px; }

/* ── Page Layout ── */
.tt-main { min-height: 60vh; }
.tt-page-wrap { padding: 48px 0; }
.tt-page-title { font-size: 32px; font-weight: 800; margin-bottom: 32px; color: var(--tt-primary); }

/* ── header-actions (auth CTA buttons in v3-style header) ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 12px;
}
@media (max-width: 768px) {
    .header-actions { display: none; }
}

/* btn-ghost style (used in header-actions) */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: background .15s, color .15s;
    border: 1px solid transparent;
}
.btn-ghost:hover { background: rgba(0,0,0,.04); color: #374151; }

/* btn-white-outline for dark CTA sections */
.btn-white-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.5);
    transition: all .2s;
    background: transparent;
}
.btn-white-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Utility ── */
.tt-text-center { text-align: center; }
.tt-mb-0  { margin-bottom: 0; }
.tt-mt-24 { margin-top: 24px; }
.sr-only  { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Mobile menu for v4-style nav elements ── */
.tt-mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--tt-gray); }
@media (max-width: 768px) {
    .tt-nav { display: none; }
    .tt-mobile-menu-btn { display: block; }
    .tt-nav.tt-nav--open {
        display: block;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--tt-border);
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
    }
    .tt-nav--open ul { flex-direction: column; }
    .tt-hero { padding: 48px 0; }
    .tt-features__grid { grid-template-columns: 1fr; }
    .tt-process__steps { grid-template-columns: 1fr 1fr; }
}
