/**
 * Biçer Turizm - Base Styles
 * Reset, Typography, and Base Elements
 * Updated: Light theme support
 */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--text-5xl);
    }

    h2 {
        font-size: var(--text-4xl);
    }

    h3 {
        font-size: var(--text-3xl);
    }
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Links within text content - must be distinguishable (WCAG 1.4.1) */
p a,
li a,
td a,
dd a,
figcaption a,
blockquote a {
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 2px;
}

p a:hover,
li a:hover,
td a:hover,
dd a:hover,
figcaption a:hover,
blockquote a:hover {
    text-decoration-color: var(--color-primary-dark);
}

strong,
b {
    font-weight: var(--font-semibold);
}

/* ===== Lists ===== */
ul,
ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

/* ===== Images ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Selection ===== */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===== Focus States ===== */
:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-section-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-700);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

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

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

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-accent {
    color: var(--text-accent) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--color-white) !important;
}

/* Margin utilities */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: var(--space-2) !important;
}

.mb-4 {
    margin-bottom: var(--space-4) !important;
}

.mb-6 {
    margin-bottom: var(--space-6) !important;
}

.mb-8 {
    margin-bottom: var(--space-8) !important;
}

.mb-12 {
    margin-bottom: var(--space-12) !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-4 {
    margin-top: var(--space-4) !important;
}

.mt-8 {
    margin-top: var(--space-8) !important;
}

.mt-12 {
    margin-top: var(--space-12) !important;
}

/* Display utilities */
.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

/* Flexbox utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Background utilities */
.bg-white {
    background-color: var(--color-white) !important;
}

.bg-light {
    background-color: var(--bg-section-alt) !important;
}

.bg-dark {
    background-color: var(--color-darker) !important;
}