/* ==========================================================================
   GIDASAN MASTER MAIN.CSS - FULL VERSION
   ========================================================================== */

/* 1. DEĞİŞKENLER (VARIABLES) */
:root {
    /* --- LIGHT MODE (Varsayılan) --- */
    --bg-body: #f5f7fa;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #374151;
    --text-title: #111827;
    --section-title: #243c94;
    --info-item-bg: #f8faff;
    --info-item-border: rgba(36, 60, 148, 0.1);
    --footer-text: #4b5563;
    
    /* Sabitler */
    --primary: #243c94;
    --primary-dark: #1c2f75;
    --secondary: #2d4ab4;
    --success: #10b981;
    --transition-speed: 0.4s ease;
    --header-gradient: linear-gradient(135deg, #243c94 0%, #1c2f75 50%, #1a1f4d 100%);
}

/* --- DARK MODE RENKLERİ --- */
body.dark-mode {
    --bg-body: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: #1e293b;
    --text-main: #cbd5e1;
    --text-title: #f8fafc;
    --section-title: #60a5fa;
    --info-item-bg: rgba(15, 23, 42, 0.6);
    --info-item-border: rgba(255, 255, 255, 0.08);
    --footer-text: #94a3b8;
    --header-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #020617 100%);
}

/* 2. TEMEL SIFIRLAMA (RESET) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-gradient);
    background-attachment: fixed;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Yumuşak Geçiş Efekti (Tüm elemanlar için) */
body, .card, .section, .info-item, .bank-account, h1, h2, h4, p, a, i, span {
    transition: background-color var(--transition-speed), 
                color var(--transition-speed), 
                border-color var(--transition-speed), 
                box-shadow var(--transition-speed),
                transform 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* 3. LAYOUT (DÜZEN) */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    animation: slideUp 0.6s ease-out;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--info-item-border);
}

/* 4. BÖLÜMLER (SECTIONS) */
.section {
    padding: 20px;
    border-top: 1px solid var(--info-item-border);
    margin: 20px 0;
}

.section.no-border {
    border-top: none;
    margin-top: 0;
    padding-top: 20px;
}

.section-title {
    color: var(--section-title);
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

/* İKON DÜZELTMESİ (AÇIK VE KAPALI MOD İÇİN) */
.section-title i {
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
    color: var(--primary); /* Fallback */
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

body.dark-mode .section-title i {
    color: var(--section-title) !important;
}

/* 5. BİLGİ KUTUCUKLARI (INFO GRID) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--info-item-bg);
    border-radius: 12px;
    border: 1.5px solid var(--info-item-border);
}

/* HOVER (PARLAMA DÜZELTMESİ) */
.info-item:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(36, 60, 148, 0.12);
}

body.dark-mode .info-item:hover {
    background: #2d3748 !important; /* Parlamayan koyu gri */
    border-color: var(--section-title) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.info-item i {
    width: 28px;
    color: var(--primary);
    font-size: 18px;
    text-align: center;
    padding-top: 4px;
    flex-shrink: 0;
}

body.dark-mode .info-item i {
    color: var(--section-title);
}

.info-content h4 {
    font-size: 14px;
    color: var(--text-title);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.info-content p, .info-content a {
    color: var(--text-main);
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
}

.info-content a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* 6. DURUM ROZETLERİ (AÇIK/KAPALI) */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

.status-open {
    background: #d1fae5;
    color: #065f46;
}

body.dark-mode .status-open {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-closed {
    background: #fee2e2;
    color: #7f1d1d;
}

body.dark-mode .status-closed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* 7. DİĞER ELEMANLAR */
.map-link {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.company-about {
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-main);
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--footer-text);
    font-size: 13px;
}

footer a {
    color: var(--primary);
    text-decoration: underline;
}

/* 8. TEMA DEĞİŞTİRME BUTONU (TOGGLE) */
.theme-toggle-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.theme-switch {
    position: relative;
    width: 70px;
    height: 36px;
    display: block;
}

.theme-checkbox { display: none; }

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1c2f75;
    transition: 0.4s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.theme-icon {
    position: absolute;
    height: 26px; width: 26px;
    left: 5px; bottom: 5px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: inset 9px -3px 0px 0px #d8dbe0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-checkbox:checked + .theme-slider {
    background-color: #69b0e7;
}

.theme-checkbox:checked + .theme-slider .theme-icon {
    transform: translateX(34px);
    background-color: #ffd43b;
    box-shadow: 0 0 10px rgba(255, 212, 59, 0.6);
}

/* 9. ANİMASYON VE RESPONSIVE */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .container { padding: 10px; }
    .section { padding: 20px; }
    .info-grid { grid-template-columns: 1fr; }
}

/* 1. Açı değişkenini tanımlıyoruz */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* 2. Kartın ana yapısını güncelliyoruz */
.card {
    position: relative;
    border: 3px solid transparent; /* Işığın döneceği ray/yol */
    background: 
        /* Birinci katman: Kartın iç rengi (padding-box içinde kalır) */
        linear-gradient(var(--card-bg), var(--card-bg)) padding-box, 
        /* İkinci katman: Dönen ışık hüzmesi (border-box içinde, yani sadece kenarda görünür) */
        conic-gradient(
            from var(--angle),
            transparent 70%, 
            var(--primary) 85%, 
            var(--secondary) 95%,
            transparent 100%
        ) border-box;
    
    border-radius: 20px;
    background-origin: border-box;
    background-clip: padding-box, border-box; /* Sırrı burası: İç kısmı korur, kenarı ışıklandırır */
    animation: rotate_beam 6s linear infinite;
    overflow: hidden; /* İçeriklerin taşmasını engeller */
}

/* 3. Animasyon hızı ve dönüşü */
@keyframes rotate_beam {
    to {
        --angle: 360deg;
    }
}

/* 4. Dark Mode için özel ayar (İsteğe bağlı) */
body.dark-mode .card {
    /* Dark mode'da kenar rengini hafifçe belli etmek isterseniz */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}