/* ================================================================
   EK SE SRESHTHA - BASE STYLES & RESET
   ----------------------------------------------------------------
   CSS reset and base element styling that applies globally.
   All pages import this file after variables.css.
   ================================================================ */

/* ----------------------------------------------------------------
   UNIVERSAL RESET
   Ensures consistent starting point across all browsers.
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ----------------------------------------------------------------
   ROOT ELEMENTS
   ---------------------------------------------------------------- */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-50);
    min-height: 100vh;
}

/* ----------------------------------------------------------------
   TYPOGRAPHY DEFAULTS
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.25;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    line-height: 1.6;
    color: var(--gray-700);
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-blue-light);
}

/* ----------------------------------------------------------------
   FORM ELEMENTS
   Base styling that gets overridden by specific components.
   ---------------------------------------------------------------- */
input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Remove default spinner from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ----------------------------------------------------------------
   IMAGE & MEDIA DEFAULTS
   ---------------------------------------------------------------- */
img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ----------------------------------------------------------------
   LIST DEFAULTS
   ---------------------------------------------------------------- */
ul,
ol {
    list-style: none;
}

/* ----------------------------------------------------------------
   TABLE DEFAULTS
   ---------------------------------------------------------------- */
table {
    border-collapse: collapse;
    width: 100%;
}

/* ----------------------------------------------------------------
   FOCUS VISIBLE (Accessibility)
   Clean keyboard focus indicator.
   ---------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--brand-blue-light);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------
   CUSTOM SCROLLBAR
   Subtle scrollbar that doesn't distract.
   ---------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ----------------------------------------------------------------
   UTILITY: SCREEN READER ONLY
   Hides content visually but keeps it available to screen readers.
   ---------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
