/* ============================================
   MADAMECACAO V3 - CSS RESET
   Modern CSS Reset + Box Sizing Fix
   ============================================ */

/* Box sizing reset - Her element için */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HTML ve Body temel ayarlar */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Başlıklar için reset */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-primary);
}

/* Paragraf ve metin elementleri */
p {
    margin: 0;
    padding: 0;
}

/* Liste reset */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Link reset */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: none;
}

/* Buton reset */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

button:focus {
    outline: none;
}

/* Input ve form elementleri */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Görsel elementler */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Iframe */
iframe {
    border: 0;
}

/* Table reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* HR */
hr {
    border: 0;
    border-top: var(--border-width) solid var(--color-gray-300);
    margin: var(--space-lg) 0;
}

/* Blockquote */
blockquote {
    margin: 0;
    padding: 0;
}

/* Code ve Pre */
code,
pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* Strong ve Bold */
strong,
b {
    font-weight: var(--font-weight-bold);
}

/* Italic */
em,
i {
    font-style: italic;
}

/* Small */
small {
    font-size: 0.875em;
}

/* Subscript ve Superscript */
sub,
sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* Address */
address {
    font-style: normal;
}

/* Fieldset ve Legend */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

/* Selection rengi */
::selection {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Scrollbar Styling (Webkit tarayıcılar) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-gray-100);
}

/* Focus visible için modern approach */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Placeholder rengi */
::placeholder {
    color: var(--color-gray-500);
    opacity: 1;
}

:-ms-input-placeholder {
    color: var(--color-gray-500);
}

::-ms-input-placeholder {
    color: var(--color-gray-500);
}

/* Autofill renk düzeltmesi */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset;
    -webkit-text-fill-color: var(--color-dark);
}

/* Hidden attribute fix */
[hidden] {
    display: none !important;
}

/* Disabled elementler */
[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
