@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --theme-orange: #ff7f50;
    --theme-dark: #2d3436;
    --bg-cream: #fdfbf7;
    --white: #ffffff;
    --text-color: #444;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* BODY AYARI */
body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--bg-cream); 
    color: var(--text-color);
    padding-top: 60px; /* Masaüstünde radyo üstte olduğu için */
    /* Mobilde kaydırma pürüzsüzlüğü için */
    -webkit-overflow-scrolling: touch; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* ====================================================== */
/* 1. RADYO PLAYER (MASAÜSTÜ & MOBİL UYUMLU) */
/* ====================================================== */
.radio-player-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff0eb; 
    color: #444; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 2000;
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

.radio-info { display: flex; align-items: center; gap: 15px; }
.radio-logo { font-weight: 600; font-size: 1rem; color: var(--theme-orange); display: flex; align-items: center; gap: 10px; }
.live-indicator { width: 10px; height: 10px; background-color: red; border-radius: 50%; display: inline-block; animation: blink 1.5s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
.radio-desc { font-size: 0.85rem; color: #666; border-left: 1px solid #ddd; padding-left: 15px; }
.radio-controls { display: flex; align-items: center; gap: 20px; }

/* --- MİNİMAL RADYO PLAY BUTONU STİLİ --- */
.btn-play {
    width: 38px; 
    height: 38px; 
    padding: 0;
    background: none; 
    border: 2px solid var(--theme-orange);
    border-radius: 50%; 
    color: var(--theme-orange); 
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.btn-play:hover { 
    background-color: var(--theme-orange); 
    color: white; 
    transform: scale(1.05);
}

.btn-play.playing {
    background: #2ecc71; 
    border-color: #2ecc71;
    color: white;
    transform: scale(1.05);
    box-shadow: none;
}

.volume-control { display: flex; align-items: center; gap: 10px; }
.volume-control i { color: #666; } 
.volume-slider { width: 80px; cursor: pointer; accent-color: var(--theme-orange); }

/* ====================================================== */
/* 2. GENEL SAYFA (HEADER, HERO, LOGO) */
/* ====================================================== */
header { 
    background: var(--white); 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
    position: sticky; 
    top: 60px; 
    z-index: 1000; 
}
@media (max-width: 768px) { header { top: 0; } } 

.logo {
    display: block;
    width: 200px;
    height: 60px;
    background-image: url('uploads/logo.jpeg'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    text-indent: -9999px;
    overflow: hidden;
}

/* --- HAMBURGER MENÜ BUTONU (Masaüstünde Gizli) --- */
.hamburger-menu {
    display: none; /* Varsayılan gizli */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
}

nav { display: flex; align-items: center; gap: 20px; }
nav a { font-weight: 600; font-size: 0.95rem; color: #666; }
nav a:hover { color: var(--theme-orange); }

.auth-buttons { display: flex; align-items: center; }
.btn-add { background: var(--theme-orange); color: white !important; padding: 10px 20px; border-radius: 30px; font-weight: 600; }
.btn-add:hover { background: #e6602e; transform: translateY(-2px); }

/* HERO BÖLÜMÜ */
.hero {
    height: 320px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('uploads/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 15px;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1rem; margin-bottom: 25px; opacity: 0.9; }

/* Arama Kutusu */
.search-box {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 650px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.search-box input { flex: 1; border: none; background: rgba(255, 255, 255, 0.9); padding: 12px 20px; border-radius: 40px; outline: none; font-size: 0.95rem; color: #333; margin-right: 8px; }
.search-btn { background: var(--theme-orange); color: white; border: none; padding: 0 30px; border-radius: 40px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.search-btn:hover { background: #e6602e; transform: translateY(-1px); }

/* Diğer Bileşenler */
.info-bar { background: var(--theme-orange); color: white; padding: 10px 0; text-align: center; font-size: 0.9rem; font-weight: 500; }
.icon-menu-container { padding: 30px 5%; background: #fff8f0; border-bottom: 1px solid #ffead0; }
.icon-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.icon-box { width: 110px; height: 90px; background: white; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; border: 1px solid #eee; transition: 0.3s; cursor: pointer; }
.icon-box:hover { transform: translateY(-5px); border-color: var(--theme-orange); }
.icon-box i { font-size: 1.5rem; color: #555; }
.icon-box span { font-size: 0.8rem; font-weight: 600; color: #555; }
.icon-box:hover i, .icon-box:hover span { color: var(--theme-orange); }

.main-wrapper { display: flex; max-width: 1200px; margin: 40px auto; padding: 0 20px; gap: 30px; align-items: flex-start; }
.sidebar { width: 280px; flex-shrink: 0; }
.sidebar-box { background: white; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.sidebar-header { background: #ffe4db; color: var(--theme-orange); padding: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sidebar-list a { display: block; padding: 12px 15px; border-bottom: 1px solid #f9f9f9; color: #666; font-size: 0.9rem; }
.sidebar-list a:hover { background: #fffbf9; color: var(--theme-orange); padding-left: 20px; }
.content-area { flex: 1; }
.section-title { font-size: 1.5rem; color: var(--theme-dark); margin-bottom: 20px; border-bottom: 3px solid var(--theme-orange); display: inline-block; padding-bottom: 5px; }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.listing-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.listing-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.listing-img { height: 180px; background-size: cover; background-position: center; position: relative; background-color: #ddd; }
.cat-badge { position: absolute; top: 10px; left: 10px; background: var(--theme-orange); color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.listing-details { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-details h3 { font-size: 1.1rem; color: var(--theme-dark); margin: 0; }
.listing-loc { font-size: 0.85rem; color: #888; display: flex; align-items: center; gap: 5px; }
.listing-btn { margin-top: auto; background: #f8f9fa; color: var(--theme-dark); text-align: center; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.listing-btn:hover { background: var(--theme-orange); color: white; }

/* Panel & Auth (Giriş) Sayfaları */
.panel-container { max-width: 900px; margin: 40px auto; background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow); border-top: 5px solid var(--theme-orange); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; }
.auth-body { min-height: 85vh; display: flex; justify-content: center; align-items: center; background: url('https://www.transparenttextures.com/patterns/cubes.png'), var(--bg-cream); padding: 20px; }
.auth-card { background: var(--white); width: 100%; max-width: 400px; padding: 40px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); text-align: center; border-top: 5px solid var(--theme-orange); margin: auto; }
.input-group input { width: 100%; padding: 12px 15px; border: 2px solid #eee; border-radius: 10px; outline: none; background: #fdfdfd; margin-bottom: 10px; }
.btn-auth { width: 100%; background: var(--theme-orange); color: white; padding: 12px; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 10px; }

/* ====================================================== */
/* 3. TV WIDGET & ANİMASYON (SOL ALT) */
/* ====================================================== */
@keyframes pulse-tv {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.tv-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999; 
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
    animation: pulse-tv 2s infinite; 
}
.tv-toggle-btn:hover { transform: scale(1.05); }

.tv-modal {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 320px;
    height: 200px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid #333;
}
.tv-header { background: rgba(0, 0, 0, 0.8); color: white; padding: 8px 12px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #444; }
#closeTv { background: none; border: none; color: white; cursor: pointer; font-size: 14px; padding: 0; }

/* ====================================================== */
/* 4. ECZANE WIDGET (SAĞ ALT) */
/* ====================================================== */
.pharmacy-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 768px) { .pharmacy-widget { bottom: 90px; right: 15px; } } 

.pharmacy-toggle { 
    width: 60px; height: 60px; border-radius: 50%; background: #e74c3c; color: white; 
    border: 3px solid white; font-size: 1.5rem; cursor: pointer; box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4); 
    display: flex; justify-content: center; align-items: center; z-index: 10000; transition: all 0.3s ease; 
}
.pharmacy-toggle:hover { transform: scale(1.1) rotate(15deg); background: #c0392b; }

/* MASAÜSTÜ İÇİN VARSAYILAN AYARLAR */
.pharmacy-content { 
    background: white; width: 300px; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
    margin-bottom: 15px; 
    /* Animasyonlu geçiş (Sadece Masaüstü) */
    opacity: 0; visibility: hidden; transform: translateY(20px); 
    transition: all 0.3s; position: absolute; bottom: 75px; right: 0; border: 1px solid #f0f0f0; 
    
    overflow-y: auto;
    max-height: 400px;
}
.pharmacy-content.active { opacity: 1; visibility: visible; transform: translateY(0); }
.pharmacy-header { background: #e74c3c; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 1rem; position: sticky; top: 0; z-index: 10; }

.pharmacy-list { list-style: none; padding: 0; margin: 0; }
.pharmacy-item { padding: 15px; border-bottom: 1px solid #eee; text-align: left; }
.pharmacy-date { background: #fdfbf7; padding: 8px; font-size: 0.85rem; text-align: center; color: #666; border-bottom: 1px solid #eee; }
.close-widget { cursor: pointer; background: rgba(255,255,255,0.2); width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }


/* ====================================================== */
/* 5. SOSYAL MEDYA (MİNİMAL) */
/* ====================================================== */
.footer-social-section { text-align: center; padding: 20px 10px; background-color: #fff; margin-top: 30px; border-top: 1px solid #f0f0f0; width: 100%; }
.social-title { color: #1f2937; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; margin-bottom: 15px; text-transform: uppercase; }
.social-icons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.social-link { font-size: 22px; text-decoration: none; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.social-link:hover { transform: translateY(-3px); background-color: #f9f9f9; }

/* Renkler */
.facebook { color: #1877F2; }
.x-twitter { color: #000000; }
.tiktok { color: #000000; }
.youtube { color: #FF0000; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #C13584; }

/* --- HAVA DURUMU STİLİ --- */
#hava-durumu-widget {
    background: transparent !important; 
    border: none !important;
    box-shadow: none !important; 
    color: #fff !important; 
    padding: 0 !important; 
    margin: 0 auto !important; 
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: 'Poppins', sans-serif;
    width: auto !important; 
}

.weather-location {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 2px solid rgba(255,255,255,0.6); 
    padding-right: 15px;
}

.weather-data {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

.weather-desc {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}


/* ====================================================== */
/* 6. MOBİL UYUM (RESPONSIVE) - KESİN ÇÖZÜM */
/* ====================================================== */

@media (max-width: 768px) {
    /* BODY VE HEADER KONUMU */
    body { padding-top: 0; padding-bottom: 70px; } 
    
    .radio-player-bar { position: fixed; bottom: 0; top: auto; left: 0; width: 100%; flex-direction: column; padding: 10px; height: auto; border-top: 1px solid #eee; border-bottom: none; z-index: 9999 !important; }
    .radio-controls { width: 100%; justify-content: center; margin-top: 5px; }

    header { top: 0; padding: 15px; position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; } 
    .logo { width: 160px; height: 50px; background-color: transparent; }
    .hamburger-menu { display: block; position: absolute; top: 25px; right: 20px; }

    header nav { display: none; width: 100%; flex-direction: column; align-items: center; margin-top: 15px; gap: 10px; order: 3; }
    .auth-buttons { display: none; width: 100%; justify-content: center; margin-top: 10px; order: 4; flex-wrap: wrap; gap: 10px; }
    header nav.active, .auth-buttons.active { display: flex; }
    header nav a { display: block; width: 100%; text-align: center; padding: 10px; background: #f9f9f9; border-radius: 5px; font-size: 1rem; }
    .btn-login { font-size: 1rem !important; padding: 10px 15px !important; color: var(--text-color) !important; border: 1px solid #ddd !important; border-radius: 5px; }
    .btn-add { padding: 8px 15px; font-size: 0.9rem; }

    .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 5px; }
    .icon-box { width: 100%; height: 80px; }
    
    .main-wrapper { flex-direction: column; }
    .sidebar { width: 100%; order: 2; margin-top: 20px; }
    .content-area { width: 100%; order: 1; padding: 0; }
    .listings-grid { grid-template-columns: 1fr; }

    #hava-durumu-widget { gap: 10px; font-size: 0.9rem; }
    .weather-location { font-size: 0.9rem; padding-right: 10px; }
    .weather-desc { display: none; }
    
    .footer-social-section { padding-bottom: 90px; }
    
    .tv-toggle-btn { bottom: 120px; left: 15px; z-index: 9999; } 
    .pharmacy-widget { bottom: 120px; right: 15px; z-index: 9999; }
    
    /* --- ECZANE SCROLL SORUNU İÇİN ÖZEL YAMA --- */
    /* Mobilde animasyonu tamamen kapatıp Display:Flex yapıyoruz. 
       Bu, tarayıcının kaydırma alanını anında tanımasını sağlar. */
    .pharmacy-content {
        width: 320px !important;
        max-height: 55vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important; /* iOS Kaydırma */
        overscroll-behavior: contain;
        touch-action: pan-y; /* Sadece dikey kaydırmaya izin ver */
        isolation: isolate; /* Yeni katman oluştur */
        
        display: none !important; /* Animasyon yerine display kullanıyoruz */
        
        /* Geçişleri iptal et */
        transition: none !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        
        bottom: 80px !important;
        right: 15px !important;
    }
    
    /* Script 'active' class'ını eklediğinde görünür olsun */
    .pharmacy-content.active {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Iframe kapsayıcısına esneklik ver */
    .pharmacy-content > div:last-child {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
    }
    
    .panel-container { margin-bottom: 140px !important; }
}

.auth-buttons { display: flex; align-items: center; gap: 20px; }
.auth-buttons a { white-space: nowrap; }