/* Google Fonts - Modern 'Poppins' */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==============================================================================================
   KRİTER 1: İleri Düzey CSS ve Duyarlı Tasarım (Responsive Design) - Modern CSS Düzenleri
   (Aşağıdaki 'body' ve diğer ana iskeletlerde Flexbox ve CSS Grid aktif olarak kullanılmıştır)
   ============================================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    background-color: #0f172a;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background-color: transparent; 
    color: #1e293b;
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.8); }

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 15;
}

.sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-trigger {
    position: fixed;
    left: 0;
    top: 0;
    width: 25px; 
    height: 100vh; 
    z-index: 25;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.sidebar-trigger::before {
    content: "❯";
    position: absolute;
    left: 0; 
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    border-radius: 0 15px 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0px 0px 8px rgba(0,0,0,0.5); 
    transition: all 0.3s ease;
}

.sidebar-trigger:hover::before {
    width: 45px;
    background: rgba(255, 255, 255, 0.35);
}

body:has(header.visible) .sidebar-trigger {
    opacity: 0;
    pointer-events: none;
}

header {
    width: 280px;
    max-width: 85%; /* Çok küçük ekranlarda taşmayı önler */
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    align-items: center;
    color: white;
    z-index: 20;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-shrink: 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
    box-shadow: 15px 0 40px rgba(0,0,0,0.5);
}

header.visible { transform: translateX(0); }

header h1 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.city-selector {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}

.city-btn {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: left;
    padding-left: 1.2rem;
}

.city-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.5);
}

.city-btn.active {
    background: rgba(59, 130, 246, 0.9); 
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.6);
    font-weight: 600;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 2.5rem; 
    position: relative;
    z-index: 10;
}

#weatherContainer {
    width: 100%;
    max-width: 850px; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* JS BÜKÜLME PANELİ İÇİN TEMİZLENMİŞ CSS */
.weather-dashboard {
    position: relative;
    border-radius: 35px;
    width: 100%;
    max-height: 100%; 
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Canvas ve overlay taşmasını engeller */
    animation: fadeInContent 1.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),
        inset 1px 1px 3px rgba(255, 255, 255, 0.6), 
        inset -1px -1px 4px rgba(255, 255, 255, 0.1); 
    isolation: isolate; /* Animasyon sonrası z-index zıplamasındaki beyazlık sorununu çözer */
}

/* Sabit şeffaf beyaz katman eklendi */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.10); /* Şeffaflık iyice azaltıldı (daha net arka plan) */
    z-index: 1; /* Canvas üzerinde */
    pointer-events: none;
    border-radius: 35px;
}

/* İçerik scroll edilebilmesi için eklendi */
.weather-content-scroll {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow-y: auto;
    z-index: 2; /* Temel katmanın üzerinde */
    display: flex;
    flex-direction: column;
}

/* JS BÜKÜLME CANVAS'I İÇİN ARKA PLAN KATMANI */
#glassCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    z-index: -1;
    filter: blur(2px); /* Cam bulanıklığı */
    pointer-events: none;
}

.current-weather {
    display: flex;
    flex-direction: column;
    position: relative;
}

.weather-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* KÜÇÜLTÜLMÜŞ YAZI BOYUTLARI */
.emoji {
    font-size: 4.8rem;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,0.35)); 
}

.city-name {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.temperature {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.3rem;
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.condition {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0; /* Açık gümüş rengi ekstra okunabilirlik için */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.detail-item, .additional-item, .forecast-card {
    background: rgba(255, 255, 255, 0.25); 
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 1rem 0.6rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-item:hover, .additional-item:hover, .forecast-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.detail-item .emoji { font-size: 1.8rem; margin-bottom: 0.3rem; }
.detail-item p { margin: 0; font-size: 0.85rem; font-weight: 700; color: #0f172a; }

.additional-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.additional-item {
    text-align: left;
    padding: 1.2rem;
}

.additional-item .label { font-size: 0.75rem; color: #334155; text-transform: uppercase; }
.additional-item .value { font-size: 1.3rem; font-weight: 800; color: #0f172a; }

.forecast h3 {
    color: #0f172a;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 800;
    padding-left: 0.5rem;
}

.forecast-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.6rem; }
.forecast-card .emoji { font-size: 2rem; }
.forecast-card strong { font-size: 0.95rem; font-weight: 800; }
.forecast-card p { font-size: 0.75rem; font-weight: 600; }

@keyframes fadeInContent {
    0% { 
        opacity: 0; 
        transform: perspective(1500px) translateY(80px) scale(0.9) rotateX(8deg) rotateY(-5deg); 
        filter: blur(25px);
    }
    100% { 
        opacity: 1; 
        transform: perspective(1500px) translateY(0) scale(1) rotateX(0) rotateY(0); 
        filter: blur(0);
    }
}

/* =========================================
   GENEL & SEMANTIK ETIKET STİLLERİ
   ========================================= */

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* Navigasyon (Menü) Barı Kalıbı */
.main-nav {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 50;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Arama Formu (Eski Inline Stiller) */
.search-form {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: none;
    color: black;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.search-button {
    padding: 8px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #2980b9;
}

/* Diğer Sayfalar İçin Genel İçerik Konteyneri (Cam Efektli Paneller) */
.content-dashboard {
    position: relative;
    border-radius: 35px;
    width: 100%;
    max-width: 900px;
    min-height: 500px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInContent 1.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),
        inset 1px 1px 3px rgba(255, 255, 255, 0.6), 
        inset -1px -1px 4px rgba(255, 255, 255, 0.1); 
    isolation: isolate;
    color: #0f172a;
}

.content-scroll {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3rem;
    overflow-y: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.content-dashboard h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #0f172a;
}

.content-dashboard p {
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Sayfa İçerik Listeleri */
.list-container {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.list-container ul, .list-container ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Tablo Kullanımı */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* İletişim Formu */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
    transition: background 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.9);
}

.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.contact-form button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Galeri (Multimedya) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 0.5rem;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 150px;
}

/* Alt Bilgi (Footer) */
.main-footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    z-index: 10;
    pointer-events: none;
}

/* Şanslı Hissediyorum Butonu */
.lucky-btn {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}
.lucky-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.6);
}

/* Antigravity Butonu */
.antigravity-trigger {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 15px;
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0.85; /* Projeyi değerlendiren kişinin görebilmesi için görünür yapıldı */
}

.antigravity-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    opacity: 1; /* Üstüne gelince tam parlar */
}

/* --- V2.0 Geliştirmeleri --- */
.sound-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sound-toggle-btn:hover, .sound-toggle-btn.active {
    background: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Skeleton Loading (Kemik Yapısı) */
.skeleton-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    position: relative;
    z-index: 10;
}
.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.08) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.skeleton-circle { width: 100px; height: 100px; border-radius: 50%; }
.skeleton-text.title { width: 200px; height: 40px; }
.skeleton-text.huge { width: 150px; height: 80px; }
.skeleton-text.sub { width: 300px; height: 30px; margin-bottom: 0; }

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* =========================================
   HAMBURGER MENÜ (MOBİL TETİKLEYİCİ)
   ========================================= */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==============================================================================================
   KRİTER 1: İleri Düzey CSS ve Duyarlı Tasarım (Responsive Design) - Media Queries
   (Sitenin mobil ve tablet görünümlerine uyumlu olması için yazılmış kurallar)
   ============================================================================================== */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    .sidebar-trigger {
        display: none !important; /* Mobilde hamburger butonu kullanılacak */
    }
    .main-nav {
        position: fixed;
        bottom: 15px;
        top: auto;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        padding: 8px 12px;
        border-radius: 18px;
        overflow-x: auto;
        white-space: nowrap;
        box-shadow: 0 -8px 32px 0 rgba(0, 0, 0, 0.3);
    }
    .main-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar for clean tab-bar look */
    }
    .main-nav {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .main-nav ul {
        gap: 8px;
    }
    .main-nav ul li a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    main {
        padding: 1.5rem;
    }
}

/* =========================================
   FORM DOĞRULAMA (VALIDATION) STİLLERİ
   ========================================= */
.form-group.has-error input,
.form-group.has-error textarea {
    border: 2px solid rgba(239, 68, 68, 0.6) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
}

.error-message {
    color: #f87171;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
    display: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.success-message {
    background: rgba(16, 185, 129, 0.25);
    border: 1.5px solid rgba(16, 185, 129, 0.6);
    border-radius: 18px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
}

.success-message h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* =========================================
   GALERİ FİLTRE BUTONLARI
   ========================================= */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(139, 92, 246, 0.8); /* Violet */
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Magnific Popup Özelleştirmeleri (Cam Efekti için) */
.mfp-bg {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
}

.mfp-content {
    border-radius: 25px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* =========================================
   ÖDEVLER PORTALI STİLLERİ (odevler.html)
   ========================================= */
.tabs-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}

.tab-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: rgba(59, 130, 246, 0.85); /* Blue */
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ÖDEV 1: CV (Özgeçmiş) */
.cv-container {
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cv-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cv-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 2px solid white;
}

.cv-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
}

.cv-info p {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }
    .cv-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ÖDEV 2: Hesap Makinesi */
.calc-container {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    max-width: 320px;
    margin: 1.5rem auto;
    padding: 1.25rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.calc-display {
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 15px;
    overflow: hidden;
}

.calc-prev-val {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    min-height: 1.2em;
}

.calc-curr-val {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    word-break: break-all;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-btn {
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.calc-btn.op {
    background: rgba(245, 158, 11, 0.3); /* Amber */
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.calc-btn.op:hover {
    background: rgba(245, 158, 11, 0.5);
}

.calc-btn.clear {
    background: rgba(239, 68, 68, 0.25); /* Red */
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.calc-btn.clear:hover {
    background: rgba(239, 68, 68, 0.4);
}

.calc-btn.equals {
    grid-column: span 2;
    background: rgba(16, 185, 129, 0.45); /* Emerald */
    border-color: rgba(16, 185, 129, 0.55);
    color: #34d399;
}

.calc-btn.equals:hover {
    background: rgba(16, 185, 129, 0.65);
}

/* ÖDEV 3: Todo List */
.todo-container {
    max-width: 480px;
    margin: 0 auto;
}

.todo-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.todo-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.5) !important;
    font-family: inherit;
    outline: none;
}

.todo-add-btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.todo-add-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.todo-item {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.todo-item.completed span {
    text-decoration: line-through;
    color: #4b5563;
    opacity: 0.7;
}

.todo-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.todo-delete-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.todo-delete-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* ÖDEV 4: Şifre ve Karakter Sayacı */
.counter-container {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-section {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 18px;
    padding: 1.25rem;
}

.tool-section h4 {
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.tool-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.5);
    outline: none;
    font-family: inherit;
    margin-bottom: 8px;
}

.strength-meter {
    height: 6px;
    width: 100%;
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

/* ÖDEV 5: Saat ve Kronometre */
.time-container {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.clock-display {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e3a8a; /* Dark Blue */
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    letter-spacing: 1px;
}

.clock-date {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 600;
}

.stopwatch-display {
    font-size: 2rem;
    font-family: monospace;
    font-weight: 700;
    margin: 0.8rem 0;
    color: #0f172a;
}

.time-btn-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.time-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.time-btn.start { background: #10b981; color: white; }
.time-btn.stop { background: #ef4444; color: white; }
.time-btn.lap { background: #3b82f6; color: white; }
.time-btn.reset { background: #6b7280; color: white; }

.time-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.lap-list {
    list-style: none;
    max-height: 120px;
    overflow-y: auto;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 5px;
    text-align: left;
    font-family: monospace;
    font-size: 0.85rem;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.lap-item:last-child {
    border-bottom: none;
}