/* --- İSLAMİ RENK PALETİ & DEĞİŞKENLER --- */
:root {
    --bg-dark: #05141a; 
    --bg-sidebar: #071f24;
    --card-bg: rgba(255, 255, 255, 0.03); 
    --card-border: rgba(212, 175, 55, 0.2); 
    --gold: #d4af37; 
    --gold-light: #f3d77b;
    --emerald: #005046; 
    --text-main: #ffffff;
    --text-muted: #8b9eb0;
    --font-main: 'Montserrat', sans-serif;
}

/* Tire (-) yerine yıldız (*) yapıldı */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SOL MENÜ (SIDEBAR) --- */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--card-border);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 5px; }

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-container {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    position: relative;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* EKLENEN KURAL: Link kapsayıcısını tam boyuta sabitler */
.logo-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
   margin-right: 10px;
    display: block;
}

.logo-container i { font-size: 2.5rem; color: var(--gold); }

.sidebar-logo h2 {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.menu-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 10px 15px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.menu-item:hover, .menu-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

.menu-item i { margin-right: 12px; width: 20px; text-align: center; font-size: 1rem; }

/* --- ANA İÇERİK ALANI --- */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: all 0.3s ease;
}

/* Üst Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.location-info { color: #fff; font-size: 1.1rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.location-info i { color: var(--gold); }
.top-date { font-size: 1rem; color: var(--gold); font-weight: 500; display: flex; align-items: center; gap: 8px;}

/* --- ANA VAKİT KARTI --- */
.main-prayer-card {
    background-color: #000;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: background-image 1s ease-in-out;
}

.main-prayer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(5, 20, 26, 0.2) 0%, rgba(5, 20, 26, 0.95) 100%);
    z-index: 1;
}

.card-content { position: relative; z-index: 2; }

.prayer-header { display: flex; justify-content: space-between; align-items: flex-start; }

.prayer-title {
    font-size: 3.5rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    font-family: 'Amiri', serif;
}

.prayer-time { font-size: 1.5rem; color: #fff; font-weight: 300; }

.countdown-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    backdrop-filter: blur(5px);
}

.countdown-box span { color: var(--gold); font-weight: 600; font-size: 1.3rem; letter-spacing: 1px; }

/* Vakit Listesi */
.prayer-list {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.2rem;
    border-radius: 15px;
    margin-top: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap; 
    gap: 10px;
}

.prayer-item { text-align: center; color: var(--text-muted); font-size: 0.9rem; transition: all 0.3s; flex: 1; min-width: 80px;}
.prayer-item i { font-size: 1.2rem; margin-bottom: 5px; color: rgba(255,255,255,0.5); }
.prayer-item strong { display: block; font-size: 1.1rem; color: #fff; margin-top: 5px; font-weight: 500; }

.prayer-item.active { color: var(--gold); transform: scale(1.1); }
.prayer-item.active i, .prayer-item.active strong { color: var(--gold); }

/* --- HIZLI ERİŞİM KARTLARI --- */
.section-title { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1rem; font-weight: 500; }

.quick-access { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.qa-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.qa-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--emerald); transition: 0.3s;
}

.qa-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); border-color: rgba(212, 175, 55, 0.5); }
.qa-card:hover::before { background: var(--gold); }

.qa-title { color: var(--gold); font-size: 1.1rem; margin-bottom: 10px; display: flex; align-items: center; font-weight: 600; }
.qa-title i { margin-right: 10px; font-size: 1.2rem; }
.qa-desc { font-size: 0.85rem; color: #aaa; line-height: 1.6; }

/* --- MENÜ KARARTMA (OVERLAY) --- */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(3px);
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .mobile-menu-btn { display: block; }

    .sidebar { 
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .sidebar.active { left: 0; }
    .menu-overlay.active { display: block; }
    
    .main-content { padding: 1rem; }
    .top-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
    
    .main-prayer-card { padding: 1.5rem; }
    .prayer-title { font-size: 2.5rem; }
    .prayer-header { flex-direction: column; gap: 15px; }
    .countdown-box { width: 100%; padding: 10px; }
    
    .prayer-list { gap: 15px; }
    .prayer-item { width: 45%; min-width: 100px; flex: none; }
}