/* Genel sıfırlama */
:root {
    --primary-color: #007bff;      /* Canlı Mavi Vurgu */
    --secondary-color: #6c757d;    /* Gri İkincil Vurgu */
    --background-dark: #f8f9fa;    /* Ana Arka Plan (Açık Gri) */
    --background-light: #ffffff;   /* Paneller ve Kartlar (BEYAZ) */
    --text-color: #343a40;         /* Koyu Gri Yazı Rengi */
    --text-secondary: #212529;     /* Daha Koyu Metin */
    --border-color: #ced4da;       /* Açık Gri Sınır Rengi */
    --shadow-light: rgba(0, 0, 0, 0.1); /* Hafif Gölge */
    --shadow-dark: rgba(0, 0, 0, 0.2);  /* Daha Koyu Gölge */
    
    /* Panel Renkleri (Artık genel temayla aynı ama değişkenler duruyor) */
    --panel-bg: var(--background-light);          
    --panel-card-bg: var(--background-dark);      
    --panel-text-color: var(--text-color);       
    --panel-border: var(--border-color);      
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Genel sayfa düzeni */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f9fc;
  color: #333;
}

/* Header (Başlık ve Navigasyon) */
header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative; /* Dil butonu için relative pozisyon eklendi */
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s, border-bottom 0.3s;
  font-weight: 500;
}

nav a:hover {
    color: #a4c6ff;
    border-bottom: 2px solid #a4c6ff;
}

nav a.active {
  border-bottom: 2px solid #fff;
}

/* Ana içerik */
main {
  flex: 1;
  display: flex;
  flex-direction: column; 
  align-items: center;
  padding: 40px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sayfa bölümleri (Genel kapsayıcı) */
.page-section {
    width: 100%;
    margin-bottom: 50px;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ==================================== */
/* INDEX.HTML Stilleri */
/* ==================================== */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 100px;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section .tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Butonları */
.cta-buttons-container {
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

/* Feature Section */
.feature-section {
    background-color: #ffffff;
    padding: 40px;
    text-align: center;
}

.feature-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
}

.feature-list {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    flex-basis: calc(33% - 20px);
    min-width: 250px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-item p {
    color: #555;
}


/* Brand Spotlight Section */
.random-brand-section {
    background-color: #f0f8ff;
    padding: 40px;
    text-align: center;
}

.random-brand-section h2 {
    font-size: 1.8rem;
    color: #e67e22;
    margin-bottom: 30px;
}

.brand-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

#brandImageContainer {
    width: 200px;
    height: 200px;
    padding: 15px;
    border: 3px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

#brandImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-details {
    max-width: 450px;
    text-align: left;
}

#brandName {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

#brandHistory {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: #a4c6ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ==================================== */
/* COMPARE.HTML Stilleri (Saat Kutuları ve Modal) */
/* ==================================== */

/* Genel Konteyner için 4 Kutuyu Saran Bölüm */
#compare-boxes-container {
    position: relative; 
    display: flex; 
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Tekil Saat Kutusu Stili (KUTU YÜKSEKLİĞİ 200px YAPILDI) */
.compare-box {
    width: 250px;
    height: 200px; 
    background-color: var(--background-dark); 
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.compare-box:hover {
    border-color: var(--primary-color);
}

.select-btn {
    background: none;
    color: var(--primary-color);
    border: none;
    font-size: 2em;
    font-weight: 100;
    cursor: pointer;
}


/* 1. OVERLAY (Karartma Katmanı) */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 99; 
    display: none;
}
.dropdown-overlay.active {
    display: block;
}

/* 2. PANEL (Marka/Model Seçim Kutusu) - AÇIK TEMA */
.dropdown-panel {
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 100; 
    width: 90%;
    max-width: 480px; 
    
    background-color: var(--panel-bg); 
    opacity: 1; 
    color: var(--panel-text-color); 
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-dark);
    border-radius: 8px;
    
    display: none;
    padding: 20px;
    
    max-height: 85vh; 
    overflow-y: auto; 
}

/* Paneldeki Başlıklar */
.dropdown-panel h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--panel-border);
}

/* Marka ve Model Listeleri Düzeni (Grid) */
.marka-listesi, .model-listesi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 12px;
    padding: 10px 0;
}

/* Marka ve Model Butonları */
.marka-btn, .model-btn {
    background-color: var(--panel-card-bg); 
    color: var(--panel-text-color); 
    
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.marka-btn:hover, .model-btn:hover {
    background-color: var(--primary-color); 
    color: white; 
}

/* Model Butonları (Resim içerdiği için) */
.model-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 15px 10px;
}

.model-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    border: 1px solid var(--panel-border);
    background-color: white; 
    border-radius: 4px;
}

/* Geri Butonu (Model listesi içinde) */
.back-btn {
    grid-column: 1 / -1; 
    background-color: var(--secondary-color);
    color: white; 
    padding: 10px;
    margin-bottom: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}
.back-btn:hover {
    background-color: var(--primary-color);
}

/* Karşılaştırma Tablosu Stilleri */
#compare-results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--background-light);
    box-shadow: 0 4px 8px var(--shadow-light);
    border-radius: 8px;
    overflow: hidden; 
}

#compare-results th, #compare-results td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-color); 
}

#compare-results thead th {
    background-color: var(--primary-color);
    color: white; 
    font-weight: bold;
    text-transform: uppercase;
}

#compare-results tbody tr:nth-child(odd) {
    background-color: var(--background-light); 
}
#compare-results tbody tr:nth-child(even) {
    background-color: #f1f1f1; /* Hafif gri */
}

#compare-results tbody td:first-child {
    text-align: left;
    font-weight: bold;
    width: 150px;
    color: var(--primary-color);
    background-color: var(--background-dark); 
}

/* Marka logosu ve detaylarının geçişi için CSS */
.brand-display * {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#brandImageContainer img {
    max-width: 100%;
    height: auto;
    opacity: 0; /* Başlangıçta gizli */
}

#brandImageContainer img.fade-in {
    opacity: 1; /* Görünür */
}

/* ==================================== */
/* CREDITS.HTML Stilleri (YENİ)         */
/* ==================================== */

.credits-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2rem;
}

.credits-section .intro-text {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
}

.credit-list {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.credit-list h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-left: 5px solid #007bff;
    padding-left: 10px;
}

.credit-item {
    background-color: #f8fbfd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.credit-item .role {
    display: block;
    font-size: 0.9em;
    color: #a4c6ff;
    font-weight: 500;
}

.credit-item .name {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.credit-item p {
    font-size: 0.95em;
    color: #555;
    margin-top: 5px;
}

/* Dil butonu stilizasyonu */
.lang-toggle-button {
    /* Buton görünümü için */
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    background-color: transparent;
    cursor: pointer;
    line-height: 1; 
    
    /* Sağ üste konumlandırma */
    position: absolute; 
    top: 25px; 
    right: 30px; 
    z-index: 1000; 
}

.lang-toggle-button:hover {
    background-color: var(--primary-color);
    color: var(--background-light);
}

/* Sayfa içeriği için main'e padding verin ki butonun arkasında kalmasın */
main {
    padding-top: 50px; 
}

/* ================================================= */
/* KAPSAMLI MOBİL UYUM KURALLARI (Responsive Design) */
/* ================================================= */

@media (max-width: 768px) {
    
    /* A. HEADER VE NAVİGASYON DÜZENLEMESİ (BAŞLIK ORTALANDI) */
    header {
        display: flex;
        flex-direction: column; 
        flex-wrap: wrap; 
        justify-content: center; 
        align-items: center; 
        padding: 10px 10px;
        height: auto;
    }
    
    header h1 {
        font-size: 1.2rem; 
        margin-bottom: 5px; 
        order: 1; 
    }

    nav {
        display: flex;
        flex-direction: row; 
        justify-content: center; 
        flex-wrap: wrap; 
        width: 100%; 
        order: 3; 
        margin-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 5px;
    }

    nav a {
        width: auto; 
        padding: 5px 8px; 
        font-size: 0.9em; 
        margin: 5px 2px;
        text-align: center;
        border-bottom: none; 
    }
    
    /* Dil butonu (eğer varsa) */
    .lang-toggle-button {
        position: relative; 
        top: auto;
        right: auto;
        order: 2; 
        padding: 5px 8px;
        font-size: 0.8em;
    }

    /* B. ANA İÇERİK DÜZENLEMESİ */
    main {
        padding: 20px 10px; 
        padding-top: 20px; 
    }
    
    /* C. KARŞILAŞTIRMA KUTULARI (KUTU BOYUTU VE DÜZENİ) */
    #compare-boxes-container {
        flex-direction: column; 
        align-items: center;
    }

    .compare-box {
        width: 90%;
        margin: 10px auto;
        height: 180px; /* KESİN DÜZELTME: Mobil kutu yüksekliği 180px yapıldı. */
    }
    
    /* D. TABLO TAŞMASI */
    #compare-results {
        overflow-x: auto; 
    }

    #compare-results table {
        min-width: 650px; 
    }
}


/* ==================================== */
/* TEK VE KESİN ÇÖZÜM: SEÇİLİ KUTU VE METİN GİZLEME */
/* ==================================== */

/* 1. Seçili Karşılaştırma Kutusu Ana Stili (AGRESİF GİZLEME EKLENDİ) */
.compare-box.selected {
    border: 2px solid var(--primary-color);
    cursor: default;
    
    /* Metin Düğümü Sorununu Çözer: Font boyutunu ve rengini sıfırla */
    font-size: 0 !important;       /* KUTU İÇİNDEKİ TÜM METİN BOYUTUNU SIFIRLA */
    color: transparent !important; /* TÜM METİN RENGİNİ ŞEFFAF YAP */
    
    /* Resim Ortalaması İçin Ayarlar */
    display: block; 
    padding: 5px; 
    overflow: hidden;
    position: relative; 
}

/* 2. Seçili Kutuya Eklenen Saat Resmi (MUTLAK KONUMLANDIRMA İLE KESİN ORTALAMA) */
.compare-box.selected img {
    display: block;
    object-fit: contain; 
    
    /* Mutlak konumlandırma ile KESİN ORTALAMA */
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); /* KESİN: Tam merkezleme */
    
    /* Boyutlandırma */
    max-width: 90%;  
    max-height: 90%; 
    width: auto;
    height: auto;
    
    margin: 0 !important; 
    z-index: 2;
    
    /* Parent'tan sıfırlanan fontu geri açmaya gerek yok, çünkü resim bir metin değil. */
}

/* 3. Resmin altındaki saat bilgisi (Metni tamamen gizle) */
.watch-info {
    display: none !important; /* KESİN: Metni tamamen gizle */
}

/* 4. Silme Butonu ('x') - Buton metni için fontu geri aç */
.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #dc3545;
    color: white !important; /* Rengi geri aç */
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
    z-index: 3; 
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 14px !important; /* Boyutu geri aç */
}

/* Kutu seçildiğinde silme butonunu görünür yap */
.compare-box.selected .remove-btn {
    display: flex; 
}

/* ==================================== */
/* ABOUT.HTML ve CONTACT.HTML STİLLERİ */
/* ==================================== */

.about-page h2, .contact-page-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.about-page h3 {
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-page ul {
    list-style: none;
    padding-left: 0;
}

.about-page ul li {
    background-color: var(--background-dark);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 5px solid var(--primary-color);
}

.about-page ul li strong {
    color: var(--primary-color);
}

.developer-info {
    margin-top: 40px;
    padding: 20px;
    background-color: #e9ecef; /* Hafif bir arka plan */
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.developer-info h4 {
    color: #212529;
    margin-bottom: 10px;
    font-size: 1.3rem;
}


/* CONTACT.HTML - İletişim Formu Stilleri */
.contact-details {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-dark);
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form-container h3 {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

/* Mobil uyum için düzeltmeler */
@media (max-width: 768px) {
    .about-page, .contact-page-section {
        padding: 20px;
    }
    
    .about-page h2, .contact-page-section h2 {
        font-size: 1.5rem;
    }
}
/* ==================================== */
/* TEK VE KESİN ÇÖZÜM: SEÇİLİ KUTU VE METİN GİZLEME */
/* ==================================== */

/* 1. Seçili Karşılaştırma Kutusu Ana Stili */
.compare-box.selected {
    border: 2px solid var(--primary-color);
    cursor: default;
    
    /* KÖKTEN ÇÖZÜM: Kutunun içindeki tüm metin içeriğini sıfırlar */
    font-size: 0 !important;       /* KUTU İÇİNDEKİ TÜM METİN BOYUTUNU SIFIRLA */
    line-height: 0 !important;     /* KESİN: Metin satır boşluğunu sıfırla */
    color: transparent !important; /* TÜM METİN RENGİNİ ŞEFFAF YAP */
    
    /* Resim Ortalaması İçin Ayarlar */
    display: block; 
    padding: 5px; 
    overflow: hidden;
    position: relative; 
}

/* 2. Seçili Kutuya Eklenen Saat Resmi (MUTLAK KONUMLANDIRMA İLE KESİN ORTALAMA) */
.compare-box.selected img {
    display: block;
    object-fit: contain; 
    
    /* Mutlak konumlandırma ile KESİN ORTALAMA */
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); /* KESİN: Tam merkezleme */
    
    /* Boyutlandırma */
    max-width: 90%;  
    max-height: 90%; 
    width: auto;
    height: auto;
    
    margin: 0 !important; 
    z-index: 2;
}

/* 3. Resmin altındaki saat bilgisi (Metni tamamen gizle) */
.watch-info {
    /* Daha önce yazdık ama tekrar edelim ki %100 gizlensin */
    display: none !important; /* KESİN: Metni tamamen gizle */
}

/* 4. Silme Butonu ('x') - Buton metni için fontu geri aç */
.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #dc3545;
    color: white !important; /* Rengi geri aç */
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
    z-index: 3; 
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 14px !important; /* Boyutu geri aç */
}

/* Kutu seçildiğinde silme butonunu görünür yap */
.compare-box.selected .remove-btn {
    display: flex; 
}
