/* Learning Tail Dashboard - Matching Static Site Design System */

:root {
    /* Colors - Warm Scandinavian palette matching static site */
    --bg-primary: #ffffff;
    --bg-secondary: #FAF7F2;        /* bone - matches static site --bg */
    --bg-elevated: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1B1F23;        /* charcoal - matches static site --ink */
    --text-secondary: #6B7280;       /* matches static site --muted */
    --text-muted: #9a9aa1;          /* lighter gray for subtler text */
    --border: #E7E4DE;              /* hairline - matches static site --line */
    --border-light: #efefef;        /* very light border from static site */
    --accent: #6D8B74;              /* sage - matches static site --accent */
    --accent-hover: #5a7862;        /* darker sage for hover */

    /* Warm accent colors from static site */
    --accent-rose: #D8BFC9;         /* muted rose */
    --accent-blue: #BFD6E6;         /* powder blue */
    --accent-sage: #D5E1D6;         /* pale sage */
    --accent-clay: #E8DED3;         /* pale clay */

    /* Warm gradient from static site */
    --gradient-warm: linear-gradient(135deg, #f9e7de, #f2c9b3);

    /* Success/warning colors with warmer tones */
    --success: #6D8B74;             /* use sage for success */
    --success-bg: #D5E1D6;          /* pale sage background */
    --warning: #D8BFC9;             /* use rose for warnings */
    --warning-bg: #f9e7de;          /* warm clay background */
    --danger: #c97064;              /* warmer red tone */
    --info: #BFD6E6;                /* powder blue for info */
    --info-bg: #f0f4f7;             /* very light blue */

    /* Shadows - Matching static site subtlety */
    --shadow-sm: 0 2px 8px rgba(27,31,35,0.05);
    --shadow: 0 4px 16px rgba(27,31,35,0.08);
    --shadow-md: 0 8px 24px rgba(27,31,35,0.1);
    --shadow-lg: 0 12px 32px rgba(27,31,35,0.12);

    /* Spacing - Matching static site border radius */
    --radius: 4px;                  /* small clean radius */
    --radius-lg: 6px;               /* slightly larger radius */
    --radius-xl: 8px;               /* largest standard radius */
    --radius-pill: 999px;           /* pill shape only for buttons */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typography - Matching Static Site */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Add subtle warmth with background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(213, 225, 214, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(216, 191, 201, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(232, 222, 211, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Import Montserrat for headings */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Typography hierarchy matching static site */
h1, h2, h3, .hero-title, .section-title, .product-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--text-primary);
}

.kicker, .eyebrow, .label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: #eef1f4;
    color: #495462;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* Navigation Header - Matching Static Site */
.dash-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 56px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.dash-logo img {
    height: 32px;
    object-fit: contain;
}

.dash-logo .shop-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.dash-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-left: 3rem;
}

.dash-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    padding: 8px 0;
}

.dash-nav-link:hover {
    color: var(--text-primary);
}

.dash-nav-link.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-credits-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-warm);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.dash-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
}

.dash-user-menu:hover {
    background: var(--bg-tertiary);
}

.dash-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Main Container - Matching Static Site */
.dash-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 56px;
}

/* Hero Section - Matching Static Site Generosity */
.dash-hero {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 80px 56px;
    margin-bottom: 48px;
    border: 1px solid var(--border-light);
}

.dash-hero-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.dash-hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.6;
}

.dash-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons - Matching Static Site */
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

/* Outline + sizes used on auth header */
.dash-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.dash-btn-outline:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.dash-btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.dash-btn-primary {
    background: var(--gradient-warm);
    color: var(--text-primary);
}

.dash-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dash-btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.dash-btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.dash-btn-dark {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: var(--radius);
}

.dash-btn-dark:hover {
    background: #2a2a2e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Stats Grid */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dash-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dash-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dash-stat-card:hover::before {
    opacity: 1;
}

.dash-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dash-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.dash-stat-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1rem;
}

.dash-stat-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.5;
}

.dash-stat-icon.primary {
    background: var(--info-bg);
    color: var(--accent);
}

.dash-stat-icon.success {
    background: var(--success-bg);
    color: var(--success);
}

.dash-stat-icon.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.dash-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.dash-stat-change {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dash-stat-change.positive {
    color: var(--success);
}

/* Section - Matching Static Site */
.dash-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
}

.dash-section-header {
    padding: 32px 56px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-section-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.dash-section-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-section-link:hover {
    color: var(--accent-hover);
}

.dash-section-content {
    padding: 56px;
}

/* Product Grid - Matching Static Site */
.dash-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.dash-product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.dash-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(213, 225, 214, 0.02) 0%,
        rgba(216, 191, 201, 0.02) 50%,
        rgba(232, 222, 211, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dash-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.dash-product-card:hover::after {
    opacity: 1;
}

.dash-product-image {
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.dash-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: var(--gradient-warm);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    letter-spacing: 0.3px;
}

.dash-product-info {
    padding: 24px;
}

.dash-product-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.dash-product-meta {
    font-size: 14px;
    color: var(--text-muted);
}

/* Empty State */
.dash-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.dash-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.dash-empty-message {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted);
}

.text-small {
    font-size: 0.875rem;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive - Matching Static Site Breakpoints */
@media (max-width: 1100px) {
    .dash-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 968px) {
    .dash-nav {
        display: none;
    }

    .dash-container {
        padding: 40px 28px;
    }

    .dash-header-inner {
        padding: 0 28px;
    }

    .dash-hero {
        padding: 48px 32px;
    }

    .dash-hero-title {
        font-size: 32px;
    }

    .dash-section-header {
        padding: 24px 32px;
    }

    .dash-section-content {
        padding: 32px;
    }

    .dash-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .dash-product-grid {
        grid-template-columns: 1fr;
    }

    .dash-container {
        padding: 24px 20px;
    }

    .dash-header-inner {
        padding: 0 20px;
    }
}
