﻿/* SkateSweden-inspired design tokens & base styles
   Notes:
   - Brand colors aligned with Sweden's official palette (Sweden Blue & Sweden Yellow).
   - If you have a license for Sweden Sans, add it locally and keep it as the first font in --font-sans.
   - Otherwise this sheet falls back to Inter (via Google Fonts) and common system sans-serifs.
*/

/* Optional: load Inter as a high-quality fallback (remove if you bundle fonts yourself) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Brand */
    --color-blue: #005293; /* Sweden Blue Standard */
    --color-yellow: #ECD235; /* Sweden Yellow Standard */
    /* Extended neutrals & accents */
    --color-blue-900: #003d6e;
    --color-blue-700: #004b85;
    --color-blue-50: #e6eff7;
    --color-black: #111111;
    --color-text: #1f2937; /* slate-800 */
    --color-muted: #6b7280; /* slate-500 */
    --color-border: #e5e7eb; /* gray-200 */
    --color-bg: #ffffff;
    --color-bg-alt: #f7f9fb;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 14px 28px rgba(0,0,0,0.12);
    --container-max: 1200px;
    --font-sans: "Sweden Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --h1: clamp(2rem, 1.2rem + 2.5vw, 3rem);
    --h2: clamp(1.5rem, 1.05rem + 1.8vw, 2.25rem);
    --h3: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
    --lead: 1.125rem;
}

/* Base reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--color-black);
}

h1 {
    font-size: var(--h1);
}

h2 {
    font-size: var(--h2);
}

h3 {
    font-size: var(--h3);
}

.lead {
    font-size: var(--lead);
    color: var(--color-muted);
}

p {
    margin: 0 0 1rem;
}

/* Links */
a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 600;
}

a:hover, a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.convert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    padding: 2rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--btn-border);
    background: var(--color-blue-700);
    font-size: medium;
    color: var(--color-bg);
    font-weight: 700;
    width: 300px;
    height: 100px;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.convert-button:disabled,
.convert-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.2);
}

/* Buttons */
.button, button, [type="button"], [type="submit"] {
    --btn-bg: var(--btn-bg);
    --btn-text: #fff;
    --btn-border: transparent;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 2rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button--secondary {
    --btn-bg: transparent;
    --btn-text: var(--color-blue);
    --btn-border: var(--color-blue);
}

.button--accent {
    --btn-bg: var(--color-yellow);
    --btn-text: #1b1b1b;
}

/* Header & navigation */
.header {
    background: var(--color-bg);
    color: #fff;
}

.header__wrap {
    margin: 0 auto;
    max-width: var(--container-max);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .nav a {
        color: #fff;
        font-weight: 700;
        padding: .4rem .6rem;
        border-radius: var(--radius-sm);
    }

        .nav a:hover {
            background: rgba(255,255,255,.12);
            text-decoration: none;
        }

/* Hero */
.hero {
    background: linear-gradient(120deg, var(--color-blue-900), var(--color-blue));
    color: #fff;
    padding: 3rem 1rem;
}

.hero__wrap {
    margin: 0 auto;
    max-width: var(--container-max);
    display: grid;
    gap: 1.25rem;
}

.hero .badge {
    align-self: start;
    background: var(--color-yellow);
    color: #1b1b1b;
}

/* Badges & tags */
.badge {
    display: inline-block;
    padding: .35rem .6rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .02em;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .06s ease;
}

    .card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

.card__media img {
    width: 100%;
    height: auto;
    display: block;
}

.card__body {
    padding: 1rem;
}

.card__title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: .35rem;
}

.card__meta {
    color: var(--color-muted);
    font-size: .9rem;
}

/* Sections & layout */
.section {
    padding: 2.5rem 1rem;
    background: var(--color-bg);
}

    .section.alt {
        background: var(--color-bg-alt);
    }

.container {
    margin: 0 auto;
    max-width: var(--container-max);
}

.grid {
    display: grid;
    gap: 1rem;
}

    .grid.cols-2 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .grid.cols-4 {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }

/* Lists for news/events */
.list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.list__item {
    padding: 1rem;
    border-left: 4px solid var(--color-blue);
    background: var(--color-blue-50);
    border-radius: var(--radius-md);
}

    .list__item .date {
        font-weight: 800;
        color: var(--color-blue);
    }

    .list__item a {
        color: var(--color-black);
        font-weight: 800;
    }

        .list__item a:hover {
            color: var(--color-blue);
            text-decoration: none;
        }

/* Forms */
input, select, textarea {
    width: 100%;
    padding: .7rem .85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: #fff;
    font: inherit;
}

    input:focus, select:focus, textarea:focus {
        outline: 3px solid color-mix(in srgb, var(--color-blue) 30%, transparent);
        border-color: var(--color-blue);
    }

/* Footer */
.footer {
    background: var(--color-bg); /* deepened blue for contrast */
    color: #e9eff6;
}

    .footer a {
        color: #e9eff6;
    }

.footer__wrap {
    background: var(--color-yellow); /* deepened blue for contrast */
    margin: 0 auto;
    max-width: var(--container-max);
    padding: 2rem 1rem;
    display: grid;
    gap: 1rem;
}

.footer__meta {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: .9rem;
    color: #1b1b1b;
}

/* Tabs */
.tabs {
    display: flex;
    gap: .5rem;
    border-bottom: 2px solid var(--color-border);
}

.tab-button {
    background: none;
    border: none;
    padding: .7rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: border-color .2s, color .2s;
}

    .tab-button:hover {
        color: #1b1b1b;
    }

    .tab-button.active {
        color: #6b7280;
    }

.tab-content {
    padding: 1rem 0;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .grid.cols-4 {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 768px) {
    .grid.cols-3, .grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .header__wrap, .hero__wrap, .footer__wrap {
        padding-left: .75rem;
        padding-right: .75rem;
    }
}

@media (max-width: 520px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Utility helpers */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: .5rem !important;
}

.mt-2 {
    margin-top: 1rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: .5rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Example component presets */
.news-card .badge {
    background: var(--color-blue-50);
    color: var(--color-blue);
}

.calendar-pill {
    display: inline-grid;
    grid-template-rows: auto 1fr;
    align-items: center;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.calendar-pill__month {
    background: var(--color-blue);
    color: #fff;
    font-weight: 800;
    padding: .3rem .6rem;
}

.calendar-pill__day {
    padding: .6rem .8rem;
    font-weight: 900;
    font-size: 1.25rem;
}

/* Layout container with sticky footer */
.layout-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

.main-content {
    flex: 1; /* Pushes footer down */
}

/* Normal links inside nav */
.nav a,
.nav .nav-link {
    color: #1b1b1b;
    font-family: Arial;
    font-weight: 500;
    padding: .4rem .6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    
    /*transition: background .2s ease, color .2s ease;*/
}

    /* Hover */
    .nav a:hover,
    .nav .nav-link:hover {
        font-style: italic;
    }

/* Active (current page) */
.nav .active {
    background: rgba(255, 255, 255, 0.25);
    color: #6b7280;
}

/* Blazor components Conversions*/

/* To specify height */
.e-upload.e-control-wrapper, .e-bigger.e-small .e-upload.e-control-wrapper {
    height: 200px;
    width: 600px;
    align-content: center;
    place-content: center;
}

/* To specify font size and color */
.e-upload .e-file-select-wrap .e-btn, .e-upload .e-upload-actions .e-btn, .e-bigger.e-small .e-upload .e-file-select-wrap .e-btn, .e-bigger.e-small .e-upload .e-upload-actions .e-btn {
    font-family: cursive;
    height: 40px;
    background-color: var(--color-blue-700);
    color: var(--btn-text);
}

/* General messagebox container */
.message-box {
    background-color: #1e1e1e; /* dark background */
    color: #f1f1f1; /* default light text */
    font-family: Consolas, monospace;
    font-size: 14px;
    border-radius: 10px;
    padding: 5px;
}

    /* Each message row */
    .message-box .e-list-item {
        display: flex;
        align-items: center;
        padding: 6px 8px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: background 0.2s ease-in-out;
    }

        /* Hover effect */
        .message-box .e-list-item:hover {
            background-color: rgba(255,255,255,0.05);
        }

    /* Icon styling (emoji or font-awesome) */
    .message-box .icon {
        margin-right: 8px;
        font-size: 16px;
    }

/* Color helpers for different message types */
.message-info {
    color: #4fc3f7; /* light blue */
}

.message-success {
    color: #81c784; /* soft green */
}

.message-error {
    color: #e57373; /* soft red */
}

.message-warning {
    color: #ffb74d; /* amber/orange */
}

/* Optional: Bold important text */
.message-box strong {
    color: #ffffff;
    font-weight: 600;
}

.e-multiselect .e-multi-select-wrapper .e-chips .e-chipcontent {
    font-size: 14px;
    -webkit-text-fill-color: white;
}

.e-multi-select-wrapper .e-chips {
    background-color: var(--color-blue-700);
    height: 26px;
}
