/**
 * MAIN CSS - PERFORMANCE OPTIMIZED
 *
 * Bootstrap'i kaldırdık. Sadece kendi grid/utility/component'lerimiz.
 * Hedef: < 30KB (Bootstrap 150KB+ idi)
 */

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 4rem;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

img, picture, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

ul, ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

li {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

strong, b {
    color: var(--text-primary);
    font-weight: 600;
}

hr {
    border: 0;
    border-top: 1px solid var(--border-soft);
    margin: 2rem 0;
}

code {
    background: rgba(15,10,31,0.5);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85em;
    color: var(--accent-light);
}

/* ============================================
   GRID SYSTEM (Bootstrap yerine)
   ============================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
}

.row.g-0 { gap: 0; }
.row.g-1 { gap: 0.25rem; }
.row.g-2 { gap: 0.5rem; }
.row.g-3 { gap: 1rem; }
.row.g-4 { gap: 1.5rem; }
.row.g-5 { gap: 2rem; }

[class*="col-"] {
    flex: 1 1 0%;
    min-width: 0;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 calc(50% - 0.5rem); max-width: calc(50% - 0.5rem); }
.col-4 { flex: 0 0 calc(33.333% - 0.667rem); max-width: calc(33.333% - 0.667rem); }
.col-3 { flex: 0 0 calc(25% - 0.75rem); max-width: calc(25% - 0.75rem); }

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 calc(50% - 0.5rem); max-width: calc(50% - 0.5rem); }
    .col-md-4 { flex: 0 0 calc(33.333% - 0.667rem); max-width: calc(33.333% - 0.667rem); }
    .col-md-3 { flex: 0 0 calc(25% - 0.75rem); max-width: calc(25% - 0.75rem); }
}

@media (min-width: 992px) {
    .col-lg-8 { flex: 0 0 calc(66.667% - 0.333rem); max-width: calc(66.667% - 0.333rem); }
    .col-lg-4 { flex: 0 0 calc(33.333% - 0.667rem); max-width: calc(33.333% - 0.667rem); }
    .col-lg-6 { flex: 0 0 calc(50% - 0.5rem); max-width: calc(50% - 0.5rem); }
    .col-lg-3 { flex: 0 0 calc(25% - 0.75rem); max-width: calc(25% - 0.75rem); }
}

/* ============================================
   UTILITIES (Bootstrap yerine)
   ============================================ */
.d-none { display: none !important; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

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

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-accent { color: var(--accent-light); }

.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }
.fw-normal { font-weight: 400; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; } .mb-1 { margin-bottom: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }  .mb-2 { margin-bottom: 0.5rem; }
.mt-3 { margin-top: 1rem; }    .mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }  .mb-4 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }    .mb-5 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    color: white;
    box-shadow: 0 8px 22px var(--accent-glow);
}

.btn-secondary {
    background: rgba(159,74,127,0.1);
    color: var(--text-secondary);
    border-color: var(--border-soft);
}
.btn-secondary:hover {
    background: rgba(159,74,127,0.2);
    color: var(--text-primary);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1.05rem; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.alert-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    color: #6ee7b7;
}
.alert-danger {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}
.alert-warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fcd34d;
}
.alert-info {
    background: rgba(96,165,250,0.1);
    border: 1px solid rgba(96,165,250,0.3);
    color: #93c5fd;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-bar {
    background: rgba(15,10,31,0.4);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.75rem 0;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb-list a {
    color: var(--text-secondary);
}
.breadcrumb-list a:hover { color: var(--accent-light); }
.breadcrumb-list .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ============================================
   CONTENT TYPOGRAPHY (Blog yazıları için)
   ============================================ */
.content-area {
    max-width: 800px;
    margin: 0 auto;
}

.content-area h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.content-area h2 {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    margin: 2rem 0 1rem;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
}

.content-area h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin: 1.5rem 0 0.75rem;
    color: var(--accent-light);
}

.content-area p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
}

.content-area ul,
.content-area ol {
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
}

.content-area li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.content-area li strong {
    color: var(--accent-light);
}

.content-area a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-area img {
    border-radius: 12px;
    margin: 1.5rem 0;
}

.content-area blockquote {
    border-left: 4px solid var(--accent);
    background: rgba(159,74,127,0.06);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.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;
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-bs-theme="light"] {
    --bg-base: #faf5f8;
    --bg-panel: #ffffff;
    --bg-elevated: #f5eef2;
    --bg-card: #ffffff;
    --text-primary: #2d1830;
    --text-secondary: #5c4d5e;
    --text-muted: #8a7d92;
    --border-soft: rgba(107,45,94,0.15);
    --border-mid: rgba(107,45,94,0.25);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .breadcrumb-bar,
    .menu-toggle,
    .btn {
        display: none;
    }
    body { background: white; color: black; }
    .container { max-width: none; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
