/* ============ HEADER BAŞLANGICI ============ */

/* Header Genel Stil */
header {
    background-color: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
}

/* Header Container - Flexbox Düzeni */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

/* Logo - En Solda */
header .logo {
    flex-shrink: 0;
    order: 1;
}

header .logo h1 {
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Navigation - Orta ve Sağ İçin */
header nav {
    display: flex;
    align-items: center;
    gap: 50px;
    flex: 1;
    order: 2;
}

/* Arama Kutusu - Ortada */
header .search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

header .search-box input {
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    background-color: #ffffff;
    color: #1a1a1a;
    width: 280px;
}

header .search-box input::placeholder {
    color: #999999;
}

header .search-box input:focus {
    outline: none;
    border-color: #1a1a1a;
}

header .search-box button {
    padding: 10px 20px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

header .search-box button:active {
    background-color: #333333;
}

/* Navbar Linkleri - En Sağda */
header .navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
    align-items: center;
    order: 3;
    flex-shrink: 0;
}

header .navbar-links li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

header .navbar-links li a:hover {
    border-bottom-color: #1a1a1a;
}

/* Accessibility Button */
header .accessibility-btn {
    background: none;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    color: #1a1a1a;
    transition: background-color 0.2s ease;
}

header .accessibility-btn:hover {
    background-color: #f5f5f5;
}

/* ============ HEADER BİTİŞİ ============ */


/* ============ ACCESSIBILITY MODAL BAŞLANGICI ============ */

/* Modal Overlay */
.accessibility-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.accessibility-modal.open {
    display: flex;
}

/* Modal Content */
.accessibility-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal Header */
.accessibility-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.accessibility-modal-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
}

.accessibility-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.accessibility-close-btn:hover {
    color: #555555;
}

/* Modal Body */
.accessibility-modal-body {
    padding: 20px;
}

/* Setting Item */
.accessibility-setting {
    margin-bottom: 24px;
}

.accessibility-setting label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 8px;
}

.accessibility-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

.setting-info {
    color: #666666;
    font-size: 12px;
    margin: 6px 0 0 28px;
    line-height: 1.4;
}

/* Font Size Controls */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.font-size-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d0d0d0;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.font-size-btn:hover {
    background-color: #f5f5f5;
    border-color: #1a1a1a;
}

.font-size-btn:active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.font-size-label {
    color: #666666;
    font-size: 12px;
    flex: 1;
    text-align: center;
}

/* Reset Button */
.accessibility-reset-btn {
    width: 100%;
    padding: 12px;
    background-color: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.accessibility-reset-btn:hover {
    background-color: #e0e0e0;
    border-color: #1a1a1a;
}

/* ============ ACCESSIBILITY MODAL BİTİŞİ ============ */

/* ============ REDUCED MOTION CLASS ============ */
body.reduce-motion {
    --transition-duration: 0s !important;
}

body.reduce-motion * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* ============ HIGH CONTRAST CLASS ============ */
body.high-contrast {
    background-color: #000000;
    color: #ffffff;
}

body.high-contrast header {
    background-color: #000000;
    border-bottom-color: #ffffff;
}

body.high-contrast header .logo h1 {
    color: #ffffff;
}

body.high-contrast header .navbar-links li a {
    color: #ffffff;
    border-bottom-color: transparent;
}

body.high-contrast header .navbar-links li a:hover {
    border-bottom-color: #ffffff;
}

body.high-contrast .accordion-item.active .accordion-button {
    background-color: #ffff00;
    color: #000000;
}

body.high-contrast .card {
    background-color: #111111;
    border-color: #ffffff;
    color: #ffffff;
}

/* ============ FONT SIZE CLASSES ============ */
body.font-small {
    font-size: 12px;
}

body.font-large {
    font-size: 18px;
}

/* ============ SIMPLE MODE CLASS ============ */
body.simple-mode .card-description {
    display: none;
}

body.simple-mode .accordion-content {
    display: none !important;
    max-height: 0 !important;
}

/* ============ ANA SAYFA BAŞLANGICI ============ */

/* Main Content Container */
.main-content {
    padding: 50px 0;
    background-color: #fafafa;
    min-height: calc(100vh - 200px);
}

.main-content .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content h1 {
    text-align: center;
    color: #1a1a1a;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 0;
}

/* Accordion Genel Stil */
.accordion {
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

/* Accordion Item */
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
    border-bottom: none;
}

/* Accordion Button (Başlık) */
.accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: left;
}

.accordion-button:hover {
    background-color: #f5f5f5;
}

/* Accordion Icon */
.accordion-icon {
    font-size: 18px;
    font-weight: normal;
    transition: transform 0.2s ease;
    color: #666666;
}

/* Accordion Content (İçerik) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: #fafafa;
    transition: max-height 0.2s ease, padding 0.2s ease;
    padding: 0 20px;
}

.accordion-content p {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Accordion Item Active State */
.accordion-item.active .accordion-button {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: white;
}

.accordion-item.active .accordion-content {
    background-color: #ecf0f1;
    max-height: 300px;
    padding: 16px 20px;
}

/* ============ ANA SAYFA BİTİŞİ ============ */
