/* ByXMES Tema Sistemi - CSS Değişkenleri */

/* Varsayılan tema - ByXMES Orijinal */
:root {
    /* ByXMES Orijinal Tema (Varsayılan) */
    --bg: #0d0d0d;
    --text: #ffffff;
    --primary: #ff005c;
    --secondary: #ff7f11;
    --accent: #ff1b1b;
    --detail: #002b80;
    --muted: #666666;
    --border: #202020;
    --shadow: rgba(0, 43, 128, 0.3);
    --card-bg: rgba(13, 13, 13, 0.8);
    --input-bg: rgba(32, 32, 32, 0.8);
    --hover-bg: rgba(255, 0, 92, 0.1);
    --success: #00cc99;
    --warning: #ff7f11;
    --error: #ff1b1b;
    --info: #3399ff;
    
    /* Animasyon renkleri */
    --particle-color: var(--primary);
    --particle-glow: var(--accent);
    --connection-color: var(--secondary);
}

/* Ayyıldız Teması */
[data-theme="ayyildiz"] {
    --bg: #b30000;
    --text: #ffffff;
    --primary: #ff4d4d;
    --secondary: #ffffff;
    --accent: #ffcccc;
    --detail: #800000;
    --muted: #cccccc;
    --border: #ff9999;
    --shadow: rgba(179, 0, 0, 0.4);
    --card-bg: rgba(179, 0, 0, 0.8);
    --input-bg: rgba(255, 153, 153, 0.2);
    --hover-bg: rgba(255, 77, 77, 0.1);
    --success: #66ff66;
    --warning: #ffff66;
    --error: #ff3333;
    --info: #66ccff;
    
    /* Animasyon renkleri */
    --particle-color: var(--primary);
    --particle-glow: var(--accent);
    --connection-color: var(--secondary);
}

/* Hayal Teması */
[data-theme="hayal"] {
    --bg: #001f33;
    --text: #e6f7ff;
    --primary: #00cc99;
    --secondary: #3399ff;
    --accent: #66ffcc;
    --detail: #004d66;
    --muted: #99ccdd;
    --border: #004d66;
    --shadow: rgba(0, 31, 51, 0.4);
    --card-bg: rgba(0, 31, 51, 0.8);
    --input-bg: rgba(0, 77, 102, 0.3);
    --hover-bg: rgba(0, 204, 153, 0.1);
    --success: #00ff99;
    --warning: #ffcc00;
    --error: #ff6666;
    --info: #66ccff;
    
    /* Animasyon renkleri */
    --particle-color: var(--primary);
    --particle-glow: var(--accent);
    --connection-color: var(--secondary);
}

/* Genel Stil Uygulamaları */
body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Butonlar */
.btn, button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn:hover, button:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 4px 15px var(--shadow);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Kartlar */
.card, .service-card, .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover, .service-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow);
    border-color: var(--primary);
}

/* Form Elemanları */
input, textarea, select {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 92, 0.2);
}

/* Navigation */
.navbar, .header {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

[data-theme="ayyildiz"] .navbar,
[data-theme="ayyildiz"] .header {
    background: rgba(179, 0, 0, 0.9);
}

[data-theme="hayal"] .navbar,
[data-theme="hayal"] .header {
    background: rgba(0, 31, 51, 0.9);
}

/* Links */
a {
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.alert-success {
    background: rgba(0, 204, 153, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 127, 17, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-error {
    background: rgba(255, 27, 27, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-info {
    background: rgba(51, 153, 255, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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

/* Canvas Animasyon Container */
#theme-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Tema Geçiş Animasyonu */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .card, .service-card, .feature-card {
        margin: 10px 0;
    }
    
    .btn, button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Erişilebilirlik */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #theme-canvas {
        display: none !important;
    }
}

/* Yüksek Kontrast Modu */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.8);
    }
    
    .card, .service-card, .feature-card {
        border-width: 2px;
    }
    
    input:focus, textarea:focus, select:focus {
        box-shadow: 0 0 0 4px var(--primary);
    }
}



/* Header Tema Seçici Dropdown */
.theme-selector-dropdown {
    position: relative;
    display: inline-block;
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.theme-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow);
    backdrop-filter: blur(10px);
    padding: 10px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-selector-dropdown:hover .theme-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown-menu .theme-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 2px 0;
    border: 1px solid transparent;
}

.theme-dropdown-menu .theme-option:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
}

.theme-dropdown-menu .theme-option.active {
    background: var(--hover-bg);
    border-color: var(--primary);
}

.theme-dropdown-menu .theme-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid var(--border);
}

.theme-dropdown-menu .theme-option span {
    color: var(--text);
    font-size: 0.9em;
    font-weight: 500;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .theme-selector-dropdown {
        order: -1;
    }
    
    .theme-dropdown-menu {
        right: auto;
        left: 0;
        min-width: 120px;
    }
    
    .theme-toggle-btn {
        width: 35px;
        height: 35px;
        padding: 8px;
    }
}

/* Animasyon geçişleri */
.theme-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-option:hover {
    transform: scale(1.02);
}

/* Erişilebilirlik */
.theme-toggle-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-option:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Yüksek kontrast modu */
@media (prefers-contrast: high) {
    .theme-dropdown-menu {
        border-width: 2px;
    }
    
    .theme-option {
        border-width: 2px;
    }
    
    .theme-preview {
        border-width: 2px;
    }
}

