/**
 * Base Reset Styles
 * @version 1.0.0
 * @description CSS Reset + Basic Element Styles
 * @updated 2026-01-05
 */

@charset "utf-8";

/* ============================================
   CSS Reset
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text, #333);
    background-color: var(--color-bg, #fff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography Reset
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin: 0 0 1em;
}

/* ============================================
   List Reset
   ============================================ */
ol, ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   Table Reset
   ============================================ */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

td, th {
    padding: 0;
    text-align: left;
}

/* ============================================
   Form Reset
   ============================================ */
input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

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

/* ============================================
   Media Reset
   ============================================ */
img,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

/* ============================================
   Link Reset
   ============================================ */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast, 0.2s);
}

a:hover {
    color: var(--color-primary, #e89513);
}

/* ============================================
   Scrollbar Styles
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

/* ============================================
   Utility Classes
   ============================================ */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   Selection Styles
   ============================================ */
::selection {
    background-color: var(--color-primary, #e89513);
    color: #fff;
}
