/*
 * GYT Page — sistema visual unificado para área logada.
 * Inclui hero, cards, typography consistente entre /dashboard e páginas internas.
 *
 * Cores base vêm de gyt-ui.css (--c-ink, --c-brand, --s-surface, --s-border, etc).
 * Aplica Space Grotesk para títulos e Inter para corpo.
 */

/* PAGE WRAP — centraliza e padroniza padding */
.gyt-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 28px);
}

/* PAGE HERO — eyebrow + título + sub + actions */
.gyt-page__hero {
    margin-bottom: clamp(20px, 4vw, 32px);
    padding: clamp(20px, 4vw, 32px);
    background: linear-gradient(135deg, rgba(216,219,0,.06) 0%, rgba(216,219,0,.02) 100%);
    border: 1px solid var(--s-border);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}
.gyt-page__hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(216,219,0,.18), transparent 60%);
    pointer-events: none;
}
.gyt-page__hero > * { position: relative; z-index: 1; }
.gyt-page__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-brand-700, #a8aa00);
    margin-bottom: 8px;
    display: block;
}
.gyt-page__title {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 6px;
    color: var(--c-ink, #0a0a12);
}
.gyt-page__sub {
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-ink-60, rgba(0,0,0,.6));
    margin: 0;
    max-width: 680px;
}
.gyt-page__hero__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* CARDS unificados */
.gyt-card {
    background: var(--s-surface, #fff);
    border: 1px solid var(--s-border, rgba(0,0,0,.08));
    border-radius: 16px;
    padding: clamp(18px, 3vw, 22px);
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
    transition: box-shadow .15s ease, transform .15s ease;
}
.gyt-card:hover { box-shadow: 0 6px 24px -8px rgba(0,0,0,.12); }
.gyt-card__hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.gyt-card__title {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

/* GRID unificada */
.gyt-grid {
    display: grid;
    gap: clamp(14px, 2vw, 20px);
}
.gyt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gyt-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gyt-grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* KPI cards (numéricos) */
.gyt-kpi {
    text-align: center;
    padding: clamp(18px, 3vw, 24px);
}
.gyt-kpi__val {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}
.gyt-kpi__lbl {
    font-size: 12px;
    opacity: .65;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* EMPTY state */
.gyt-empty {
    text-align: center;
    padding: clamp(40px, 8vw, 60px) 24px;
}
.gyt-empty__icon { font-size: 56px; opacity: .35; margin-bottom: 12px; }
.gyt-empty__title {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: 18px; font-weight: 700; margin-bottom: 6px;
}
.gyt-empty__sub { font-size: 14px; opacity: .65; max-width: 380px; margin: 0 auto 18px; }

/* MOBILE: cards mais apertados */
@media (max-width: 640px) {
    .gyt-page__hero { border-radius: 14px; }
    .gyt-card { border-radius: 14px; }
}
