/* ============================================================================
   Dashboard Styling - Kortbasert design for arbeidsside
   Konvertert fra lokal-utvikling til design-systemet
   ============================================================================ */

/* Hero Section */
.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: var(--space-6);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(76, 175, 80, 0.12), transparent 32%),
        radial-gradient(circle at bottom right, rgba(22, 82, 26, 0.08), transparent 26%),
        linear-gradient(135deg, #fcfffc 0%, #f3f9f2 100%);
    overflow: hidden;
}

.dashboard-hero::before,
.dashboard-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(27, 94, 32, 0.06);
    pointer-events: none;
}

.dashboard-hero::before {
    width: 180px;
    height: 180px;
    top: -72px;
    right: 80px;
}

.dashboard-hero::after {
    width: 120px;
    height: 120px;
    bottom: -44px;
    left: 42%;
}

.dashboard-hero-copy,
.dashboard-hero-notes {
    position: relative;
    z-index: 1;
}

/* Eyebrow/Kicker Labels */
.dashboard-eyebrow,
.dashboard-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 82, 26, 0.08);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Typography */
.dashboard-hero h2 {
    margin: 14px 0 12px;
    font-size: var(--text-3xl);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.dashboard-hero p,
.dashboard-section-header p,
.dashboard-article-card p,
.dashboard-support-card p {
    color: var(--color-text-light);
}

.dashboard-hero-notes {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
}

.dashboard-note-pill {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(22, 82, 26, 0.1);
    color: var(--color-text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Section Structure */
.dashboard-section {
    margin-bottom: var(--space-6);
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.dashboard-section-header h3 {
    margin: 0 0 6px;
    font-size: var(--text-xl);
    line-height: 1.2;
    color: var(--color-text);
}

/* Card Grids */
.dashboard-card-grid {
    display: grid;
    gap: 18px;
}

.dashboard-card-grid-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card-grid-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card Base Styles */
.dashboard-article-card,
.dashboard-support-card,
.dashboard-round-selector-card,
.dashboard-round-summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

/* Article Cards (Primary Actions) */
.dashboard-article-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.dashboard-article-card::after {
    content: '';
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 90px;
    height: 90px;
    border-radius: 50% 42% 60% 38%;
    opacity: 0.16;
}

/* Accent Colors */
.dashboard-accent-rounds::after {
    background: #4caf50;
}

.dashboard-accent-extension::after {
    background: #ff9800;
}

.dashboard-accent-distribution::after {
    background: #00bcd4;
}

.dashboard-accent-finance::after {
    background: #ffc107;
}

/* Card Typography */
.dashboard-article-card h4,
.dashboard-support-card h4,
.dashboard-round-summary-card h4 {
    margin: 0;
    font-size: var(--text-xl);
    line-height: 1.2;
    color: var(--color-text);
}

/* Card Elements */
.dashboard-card-note {
    margin-top: auto;
    padding: var(--space-3) 14px;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    font-size: var(--text-sm);
}

.dashboard-video-placeholder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px dashed rgba(22, 82, 26, 0.25);
    border-radius: var(--radius-md);
    background: rgba(248, 250, 247, 0.95);
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

.dashboard-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-3);
    margin-top: auto;
}

.dashboard-card-location {
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 600;
}

/* Inline Actions */
.dashboard-inline-actions,
.dashboard-shortcut-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-shortcuts-card .dashboard-shortcut-list {
    margin-top: 18px;
}

/* Round Selector Layout */
.dashboard-round-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 18px;
}

.dashboard-selector-label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 600;
}

.dashboard-select {
    width: 100%;
    padding: var(--space-3) 14px;
    margin-bottom: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-sm);
}

/* Empty State */
.dashboard-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.7), rgba(255, 255, 255, 0.95));
    color: var(--color-text-light);
    text-align: center;
}

.dashboard-round-summary.hidden,
.dashboard-empty-state.hidden {
    display: none;
}

/* Round Summary */
.dashboard-round-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-round-status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 82, 26, 0.08);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-round-summary-header p {
    margin: 8px 0 0;
}

.dashboard-round-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.dashboard-round-fact {
    padding: 14px;
    border-radius: var(--radius-md);
    background: #f8faf8;
    border: 1px solid rgba(22, 82, 26, 0.08);
}

.dashboard-round-fact strong {
    display: block;
    margin-top: 6px;
    color: var(--color-text);
    font-size: var(--text-lg);
}

.dashboard-round-fact span {
    color: var(--color-text-light);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .dashboard-hero,
    .dashboard-round-layout,
    .dashboard-card-grid-primary,
    .dashboard-card-grid-secondary {
        grid-template-columns: 1fr;
    }

    .dashboard-round-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dashboard-hero,
    .dashboard-article-card,
    .dashboard-support-card,
    .dashboard-round-selector-card,
    .dashboard-round-summary-card {
        padding: 18px;
    }

    .dashboard-hero h2 {
        font-size: var(--text-2xl);
    }

    .dashboard-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-inline-actions,
    .dashboard-shortcut-list,
    .dashboard-round-facts {
        grid-template-columns: 1fr;
    }

    .dashboard-round-facts {
        display: grid;
    }
}
