/* =========================================================
   styles.css  –  Recipe Pantry Personal
   Design tokens (CSS variables) — Drive Emerald Design
   ========================================================= */

/* ─── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ─── Tokens — Light Mode ────────────────────────────────────────── */
:root {
    /* Colores Recipe Pantry Drive - Esmeralda */
    --primary: #10B981;
    --primary-light: #F0FDF4;
    /* Very light green */
    --primary-dark: #059669;
    --on-primary: #FFFFFF;
    --logo-color: #10B981;
    /* Branding - Esmeralda */

    --secondary: #34D399;
    --secondary-light: #ECFDF5;
    --on-secondary: #064E3B;

    /* Tema dinámico */
    --bg: #ffffff;
    --surface: #f5f5f5;
    --on-surface: #1a1a1a;
    --on-surface-variant: #555;
    --border: #eeeeee;
    --sidebar-bg: #ffffff;

    --text-main: var(--on-surface);
    --text-secondary: var(--on-surface-variant);
    --outline: var(--border);

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Espaciado Relativo */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08);

    /* Tipografía */
    --font-display: 'Epilogue', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Material 3 Tokens */
    --surface-container-low: var(--bg);
    --surface-container: var(--surface);
    --surface-container-high: var(--surface);
    --secondary-container: var(--primary-light);
    --on-secondary-container: var(--primary-dark);
    --tertiary-container: var(--surface);
    --on-tertiary-container: var(--on-surface);
    --outline-variant: var(--border);

    /* Transiciones */
    --transition-fast: 150ms ease-out;
    --transition-base: 250ms ease-out;
}


/* ─── Base Global ────────────────────────────────────────────────── */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.4rem;
    /* 14px default */
    line-height: 1.5;
    background: var(--bg);
    color: var(--on-surface);
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin-top: 0;
}

h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.6rem, 2vw, 1.8rem);
}

/* ─── Scrollbar Custom ───────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
}

/* ─── Focus visible ──────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Selección de texto ─────────────────────────────────────────── */
::selection {
    background: var(--primary-light);
    color: var(--primary);
}

/* ─── Utilidades ─────────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.brand-font {
    font-family: 'Epilogue', sans-serif;
}

.soft-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.fill-1 {
    font-variation-settings: 'FILL' 1;
}

/* ─── Layout Drive ────────────────────────────────────────────── */
.body-drive {
    background-color: var(--bg);
    color: var(--on-surface);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

.aside-drive {
    width: clamp(160px, 15vw, 220px);
    height: 100%;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.main-drive {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.top-bar-drive {
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}