﻿/* ============================================================
   DESIGN SYSTEM — BilMarknadsPlats.se
   Enterprise-grade token architecture
   ============================================================ */

/* ------------------------------------------------------------
   COLOR SYSTEM
   ------------------------------------------------------------ */
:root {
    /* Primary palette */
    --primary: #0084c7;
    --primary-dark: #006aa8;
    --primary-light: #e6f4fc;
    /* Accent palette */
    --accent: #0095e0;
    /* Accent Yellow/Orange palette */
    --accent-yellow: #ffb300;
    --accent-orange: #ff8c00;
    /* Semantic palette */
    --success: #2ecc71;
    --success-light: #e9f9f0;
    --warning: #f1c40f;
    --warning-light: #fff8e1;
    --danger: #e74c3c;
    --danger-light: #fdecea;
    --info: #3498db;
    --info-light: #e8f4fd;
    --premium-bg: #f4f8ff;
    /* Neutral palette */
    --text-dark: #2a2a2a;
    --text-medium: #555;
    --text-light: #7a7a7a;
    --bg-white: #ffffff;
    --bg-light: #f7f7f7;
    --bg-lighter: #fafafa;
    --bg-dark: #1f1f1f;
    /* Border colors */
    --border-light: #e0e0e0;
    --border-medium: #d0d0d0;
    --border-dark: #b0b0b0;
    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 6px 18px rgba(0,0,0,0.12);
    --shadow-xl: 0 10px 30px rgba(0,0,0,0.18);
    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 30px;
    --space-8: 40px;
    --space-9: 60px;
    /* Typography scale */
    --font-xs: 14px;
    --font-sm: 16px;
    --font-md: 18px;
    --font-lg: 22px;
    --font-xl: 30px;
    --font-xxl: 42px;
    /* Line heights */
    --lh-tight: 1.1;
    --lh-normal: 1.4;
    --lh-loose: 1.7;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */
html, body {
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-md);
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: var(--lh-tight);
    font-weight: 700;
}

p {
    font-size: var(--font-sm);
    line-height: var(--lh-loose);
    color: var(--text-light);
}
/* GLOBAL LINK RESET */
a {
    text-decoration: none;
    color: inherit;
}

    a:hover {
        text-decoration: none;
    }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.main-button a {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: .25s;
}

    .main-button a:hover {
        background: transparent;
        color: var(--primary);
    }

.border-button a {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: .25s;
}

    .border-button a:hover {
        background: var(--primary);
        color: #fff;
    }

/* ------------------------------------------------------------
   CARDS
   ------------------------------------------------------------ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: .25s;
}

    .card:hover {
        box-shadow: var(--shadow-md);
    }

/* ------------------------------------------------------------
   UTILITIES — SPACING
   ------------------------------------------------------------ */
.mt-10 {
    margin-top: var(--space-3);
}

.mt-20 {
    margin-top: var(--space-5);
}

.mt-40 {
    margin-top: var(--space-8);
}

.mb-10 {
    margin-bottom: var(--space-3);
}

.mb-20 {
    margin-bottom: var(--space-5);
}

.mb-40 {
    margin-bottom: var(--space-8);
}

/* ------------------------------------------------------------
   UTILITIES — FLEX & GRID
   ------------------------------------------------------------ */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

/* ------------------------------------------------------------
   UTILITIES — TEXT
   ------------------------------------------------------------ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-light {
    color: var(--text-light);
}

/* ------------------------------------------------------------
   UTILITIES — BACKGROUND
   ------------------------------------------------------------ */
.bg-white {
    background: var(--bg-white);
}

.bg-light {
    background: var(--bg-light);
}

.bg-primary {
    background: var(--primary);
    color: #fff;
}

/* ------------------------------------------------------------
   UTILITIES — BORDERS
   ------------------------------------------------------------ */
.border {
    border: 1px solid var(--border-light);
}

.border-top {
    border-top: 1px solid var(--border-light);
}

.border-bottom {
    border-bottom: 1px solid var(--border-light);
}

/* ------------------------------------------------------------
   UTILITIES — RADIUS
   ------------------------------------------------------------ */
.radius-sm {
    border-radius: var(--radius-sm);
}

.radius-md {
    border-radius: var(--radius-md);
}

.radius-lg {
    border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------
   UTILITIES — SHADOWS
   ------------------------------------------------------------ */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}
/* GLOBAL ICON ENHANCEMENT */
.bi {
    font-size: 1.35em; /* större */
    font-weight: 800; /* mer tryck */
    color: var(--text-dark);
}

.vd-action-btn .bi,
.vd-share-item .bi {
    font-size: 1.9em;
    font-weight: 800;
}
.bi {
    -webkit-text-stroke: 0.5px currentColor;
}
/* GLOBAL LIST RESET */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* GLOBAL HR STYLE */
hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: var(--space-5) 0;
    opacity: 0.6;
}
