﻿@import url('../Fonts/font.css');

/* ================================
   Root – Light Mode (Default)
================================ */
:root {
    /* ===== Brand Colors ===== */
    --color-primary: #2563EB; /* Blue 600 */
    --color-primary-dark: #1E40AF; /* Blue 800 */

    --color-accent: #FACC15; /* Yellow 400 */
    --color-accent-dark: #EAB308; /* Yellow 500 */

    --color-black: #0F172A; /* Slate 900 */
    /* ===== UI Colors ===== */
    --color-body: #F8FAFC; /* Slate 50 */
    --color-surface: #FFFFFF;
    --color-surface-alt: #F1F5F9; /* Slate 100 */
    --color-border: rgba(15, 23, 42, 0.08);
    --color-text: var(--color-black);
    --color-text-muted: #475569; /* Slate 600 */
    /* ===== Shadows ===== */
    --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.16);
    /* ===== Radius & Layout ===== */
    --radius-sm: 0.4rem;
    --radius-md: 0.9rem;
    --radius-lg: 1.4rem;
    --container-max: 1200px;
}

/* ================================
   Dark Mode (unchanged logic)
================================ */
html[data-theme='dark'] {
    --color-body: #020617;
    --color-surface: #0F172A;
    --color-surface-alt: #1E293B;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #F8FAFC;
    --color-text-muted: #94A3B8;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 28px 80px rgba(0, 0, 0, 0.55);
}

/* ================================
   Reset & Base
================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

*:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}


body {
    margin: 0;
    font-family: 'IRANSans', sans-serif;
    background-color: var(--color-body);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    body.is-locked {
        overflow: hidden;
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

::placeholder {
    color: var(--color-text-muted)
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

p {
    margin: 0 0 1rem 0;
}

/* ================================
   Layout
================================ */
.container {
    width: min(var(--container-max), 100% - 2rem);
    margin-inline: auto;
}

.layout {
    background-color: var(--color-body);
}

.layout__main {
    padding: 2rem 0 4rem;
}

/* ================================
   Section Heading
================================ */
.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading__title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    margin-bottom: 0.6rem;
}

.section-heading__subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* ================================
   Buttons
================================ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .button:focus-visible {
        outline: 3px solid rgba(37, 99, 235, 0.4);
        outline-offset: 3px;
    }

    .button:hover {
        transform: translateY(-2px);
    }

/* Primary – Blue */
.button--primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.35);
}

    .button--primary:hover {
        background-color: var(--color-primary-dark);
    }

/* Secondary – Yellow (Use Carefully) */
.button--secondary {
    background-color: var(--color-accent);
    color: var(--color-black);
    box-shadow: 0 12px 28px rgba(250, 204, 21, 0.45);
}

    .button--secondary:hover {
        background-color: var(--color-accent-dark);
    }

/* Ghost */
.button--ghost {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

    .button--ghost:hover {
        background-color: var(--color-surface-alt);
    }

/* Small */
.button--sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.form-logout__btn {
    display: flex;
    justify-content: center;
}
