/* ======================== */
/*      HEADER STYLES       */
/* ======================== */

/* Ana Header Konteyneri */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 65px;
    background-color: white;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
    box-sizing: border-box;
}

/* Header Sol Taraf (Logo) */
.header-left .logo {
    height: 62px;
    width: auto;
    display: block;
    margin-left: 92px;
}

/* Header Sağ Taraf */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header Menüsü (Ürünler, Destek) */
.header-menu {
    display: flex;
    gap: 15px;
}

.header-menu a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid #2e7d32;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.header-menu a i {
    font-size: 18px;
}

.header-menu a:hover {
    background-color: #2e7d32;
    color: #fff;
}

/* Header İkonları (Arama, Bildirim) */
.header-right .icon {
    font-size: 22px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header-right .icon:hover {
    color: #2e7d32;
    transform: scale(1.1);
}

/* Ayırıcı Çizgi */
.header-right .separator {
    width: 1px;
    height: 20px;
    background-color: #ccc;
    margin: 0 6px;
}

/* Header Butonları (Giriş/Kayıt) */
/* NOT: Seçiciyi daha spesifik hale getirdik (.header-right .btn) */
.header-right .btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.header-right .login {
    border: 1.5px solid #2e7d32;
    color: #2e7d32;
    background-color: transparent;
}

.header-right .login:hover {
    background-color: #2e7d32;
    color: white;
}

.header-right .register {
    background-color: #2e7d32;
    color: white;
    border: 1.5px solid #2e7d32;
}

.header-right .register:hover {
    background-color: #1b5e20;
}

/* Buton İkon Renkleri */
.header-right .login i {
    transition: color 0.3s ease;
    color: #2e7d32;
}

.header-right .login:hover i {
    color: white;
}

.header-right .register i {
    color: white;
}


/* ======================== */
/*    ARAMA PANELİ STYLES   */
/* ======================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.search-box input {
    flex: 1;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    padding: 8px;
}

.mic-icon, .search-icon {
    font-size: 18px;
    color: #555;
    margin: 0 8px;
    cursor: pointer;
    transition: color 0.3s;
}

.mic-icon:hover, .search-icon:hover {
    color: #2e7d32;
}

.suggestions {
    margin-top: 30px;
}

.suggestions h4 {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.suggestions .chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestions .chips span {
    background: #f1f1f1;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border: 1px solid #e0e0e0;
}

.suggestions .chips span:hover {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

.close-search {
    position: absolute;
    top: -50px; /* Konumunu güncelledik */
    right: 0;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    transition: transform 0.2s;
}

.close-search:hover {
    transform: scale(1.1) rotate(90deg);
}
/* ======================== */
/*  BİLDİRİM PANELİ STYLES  */
/* ======================== */

/* Paneli ve ikonu konumlandırmak için sarmalayıcı */
.notification-wrapper {
    position: relative; /* Panelin buna göre konumlanmasını sağlar */
}

/* Bildirim panelinin ana konteyneri */
.notification-panel {
    display: none; /* Başlangıçta gizli */
    position: absolute;
    top: 55px; /* İkonun biraz altına */
    right: 0;
    width: 360px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    overflow: hidden;
}

/* Paneli göstermek için kullanılacak class */
.notification-panel.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel .panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.notification-panel .panel-header h4 {
    margin: 0;
    font-size: 16px;
}

.notification-panel .notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px; /* Çok fazla bildirim olursa kaydırma çubuğu çıkar */
    overflow-y: auto;
}

.notification-list li {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.notification-list li:hover {
    background-color: #f9f9f9;
}

.notification-list li:last-child {
    border-bottom: none;
}

.notification-list .icon-container {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.notification-list .icon-container.success { background-color: #2e7d32; }
.notification-list .icon-container.info { background-color: #1e88e5; }
.notification-list .icon-container.warning { background-color: #f9a825; }

.notification-list .content p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
}

.notification-list .content .time {
    font-size: 12px;
    color: #888;
}

.notification-list .no-notifications {
    justify-content: center;
    color: #888;
    padding: 20px;
}

.notification-panel .panel-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee;
    background-color: #fcfcfc;
}

.notification-panel .panel-footer a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    font-size: 14px;
}
/* ======================== */
/*  BİLDİRİM PANELİ STYLES  */
/* ======================== */

.notification-wrapper {
    position: relative;
}

.notification-panel {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    width: 360px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    overflow: hidden;
}

.notification-panel.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel .panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.notification-panel .panel-header h4 { margin: 0; font-size: 16px; }
.notification-panel .notification-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.notification-list li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eee; transition: background-color 0.2s ease; }
.notification-list li:hover { background-color: #f9f9f9; }
.notification-list li:last-child { border-bottom: none; }
.notification-list .icon-container { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.notification-list .icon-container.success { background-color: #2e7d32; }
.notification-list .icon-container.info { background-color: #1e88e5; }
.notification-list .content p { margin: 0 0 4px 0; font-size: 14px; color: #333; }
.notification-list .content .time { font-size: 12px; color: #888; }
.notification-list .no-notifications { justify-content: center; color: #888; padding: 20px; }
.notification-panel .panel-footer { padding: 10px; text-align: center; border-top: 1px solid #eee; background-color: #fcfcfc; }
.notification-panel .panel-footer a { text-decoration: none; color: #2e7d32; font-weight: 600; font-size: 14px; }