/* Tema Sistemi - CSS Custom Properties */

/* Tema 1: Varsayılan Tema (Inter - Çaycı Baba Kahverengi) */
:root,
[data-theme="1"] {
    --theme-primary: #472918;
    --theme-primary-hover: #2d1a0f;
    --theme-primary-light: #f5ede8;
    --theme-primary-rgb: 71, 41, 24;
    --theme-secondary: #5db107;
    --theme-success: #28a745;
    --theme-danger: #dc3545;
    --theme-warning: #ffc107;
    --theme-info: #17a2b8;
    --theme-body-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text: #212529;
    --theme-text-muted: #6c757d;
    --theme-border: #dee2e6;
    --theme-font-family: 'Inter', sans-serif;
}

/* Tema 2: Roboto - Mor */
[data-theme="2"] {
    --theme-primary: #6f42c1;
    --theme-primary-hover: #5a32a3;
    --theme-primary-light: #f3e8ff;
    --theme-primary-rgb: 111, 66, 193;
    --theme-secondary: #6c757d;
    --theme-success: #28a745;
    --theme-danger: #dc3545;
    --theme-warning: #ffc107;
    --theme-info: #17a2b8;
    --theme-body-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text: #212529;
    --theme-text-muted: #6c757d;
    --theme-border: #dee2e6;
    --theme-font-family: 'Roboto', sans-serif;
}

/* Tema 3: Open Sans - Yeşil */
[data-theme="3"] {
    --theme-primary: #20c997;
    --theme-primary-hover: #1aa179;
    --theme-primary-light: #e6faf5;
    --theme-primary-rgb: 32, 201, 151;
    --theme-secondary: #6c757d;
    --theme-success: #28a745;
    --theme-danger: #dc3545;
    --theme-warning: #ffc107;
    --theme-info: #17a2b8;
    --theme-body-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text: #212529;
    --theme-text-muted: #6c757d;
    --theme-border: #dee2e6;
    --theme-font-family: 'Open Sans', sans-serif;
}

/* Tema 4: Lato - Turuncu */
[data-theme="4"] {
    --theme-primary: #fd7e14;
    --theme-primary-hover: #e66a00;
    --theme-primary-light: #fff4e6;
    --theme-primary-rgb: 253, 126, 20;
    --theme-secondary: #6c757d;
    --theme-success: #28a745;
    --theme-danger: #dc3545;
    --theme-warning: #ffc107;
    --theme-info: #17a2b8;
    --theme-body-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text: #212529;
    --theme-text-muted: #6c757d;
    --theme-border: #dee2e6;
    --theme-font-family: 'Lato', sans-serif;
}

/* Tema 5: Poppins - Kırmızı */
[data-theme="5"] {
    --theme-primary: #e83e8c;
    --theme-primary-hover: #d91a72;
    --theme-primary-light: #fce4ec;
    --theme-primary-rgb: 232, 62, 140;
    --theme-secondary: #6c757d;
    --theme-success: #28a745;
    --theme-danger: #dc3545;
    --theme-warning: #ffc107;
    --theme-info: #17a2b8;
    --theme-body-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text: #212529;
    --theme-text-muted: #6c757d;
    --theme-border: #dee2e6;
    --theme-font-family: 'Poppins', sans-serif;
}

/* Tema 6: Montserrat - Teal */
[data-theme="6"] {
    --theme-primary: #20c997;
    --theme-primary-hover: #1aa179;
    --theme-primary-light: #e0f7f4;
    --theme-primary-rgb: 32, 201, 151;
    --theme-secondary: #6c757d;
    --theme-success: #28a745;
    --theme-danger: #dc3545;
    --theme-warning: #ffc107;
    --theme-info: #17a2b8;
    --theme-body-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text: #212529;
    --theme-text-muted: #6c757d;
    --theme-border: #dee2e6;
    --theme-font-family: 'Montserrat', sans-serif;
}

/* Tema 7: Source Sans Pro - Indigo */
[data-theme="7"] {
    --theme-primary: #6610f2;
    --theme-primary-hover: #520dc2;
    --theme-primary-light: #ede7f6;
    --theme-primary-rgb: 102, 16, 242;
    --theme-secondary: #6c757d;
    --theme-success: #28a745;
    --theme-danger: #dc3545;
    --theme-warning: #ffc107;
    --theme-info: #17a2b8;
    --theme-body-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text: #212529;
    --theme-text-muted: #6c757d;
    --theme-border: #dee2e6;
    --theme-font-family: 'Source Sans Pro', sans-serif;
}

/* Tema değişkenlerini uygula */
body {
    font-family: var(--theme-font-family);
    background-color: var(--theme-body-bg);
    color: var(--theme-text);
}

.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-primary:hover {
    background-color: var(--theme-primary-hover);
    border-color: var(--theme-primary-hover);
}

.text-primary {
    color: var(--theme-primary) !important;
}

.bg-primary {
    background-color: var(--theme-primary) !important;
}

.card {
    background-color: var(--theme-card-bg);
    border-color: var(--theme-border);
}

.card-header {
    background-color: var(--theme-primary-light);
    border-bottom-color: var(--theme-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary);
}

/* RGB değerleri için fallback */
[data-theme="1"] .form-control:focus,
[data-theme="1"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(71, 41, 24, 0.25);
}

[data-theme="2"] .form-control:focus,
[data-theme="2"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

[data-theme="3"] .form-control:focus,
[data-theme="3"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

[data-theme="4"] .form-control:focus,
[data-theme="4"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

[data-theme="5"] .form-control:focus,
[data-theme="5"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(232, 62, 140, 0.25);
}

[data-theme="6"] .form-control:focus,
[data-theme="6"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

[data-theme="7"] .form-control:focus,
[data-theme="7"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 16, 242, 0.25);
}

.link-text {
    color: var(--theme-primary);
}

.badge.bg-primary {
    background-color: var(--theme-primary) !important;
}

/* Font import'ları için Google Fonts link'leri header'da olacak */

