/* ---- TEMEL YAPILAR ---- */
body {
    background-color: #f0f2f5;
    font-family: 'Poppins', Arial, sans-serif;
}

#header {
    background: linear-gradient(90deg, #5b90f4, #66d9b4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0;
}

#panel .upper .wrapper {
    padding: 0;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---- ÜST DUYURU ÇUBUĞU ---- */
.top-announcement-bar {
    background-color: #315875;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-announcement-bar .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.social-icons a {
    color: #fff;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
}

/* ---- ANA HEADER BÖLÜMÜ ---- */
.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header-logo .site-logo {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-user-panel {
    display: flex;
    align-items: center;
}

/* ---- ALT MENÜ ÇUBUĞU ---- */
.bottom-menu-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.bottom-menu-bar .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.main-links-wrapper {
    display: flex;
    gap: 25px;
}

.main-links-wrapper a {
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}

.main-links-wrapper a i {
    color: #007bff;
    font-size: 14px;
}

.main-links-wrapper a:hover {
    color: #007bff;
    background-color: #e9ecef;
}

.main-links-wrapper a.active {
    background-color: #007bff;
    color: #fff;
}

.main-links-wrapper a.active i {
    color: #fff;
}

.dropdown-others {
    position: relative;
}

/* ---- ARAMA KUTUSU (ALT MENÜ) ---- */
.search-wrapper {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 5px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    color: #343a40;
}

.search-btn {
    background-color: #ced4da;
    border: none;
    color: #495057;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #b8c0c8;
}

/* ---- GİRİŞ/KAYIT BUTONLARI (Misafir) ---- */
.auth-wrapper {
    display: flex;
    gap: 10px;
}

.auth-btn {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: #fff;
    color: #315875;
}

.login-btn:hover {
    background-color: #f0f2f5;
}

.register-btn {
    background-color: #007bff;
    color: #fff;
}

.register-btn:hover {
    background-color: #0056b3;
}

/* ---- ÜYE PANELİ VE AÇILIR MENÜ ---- */
.member-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 10px 0;
}

.user-info-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.welcome-text, .last-visit-text {
    font-size: 14px;
    color: #f0f2f5;
    white-space: nowrap;
}

.welcome-text {
    font-weight: 600;
}

.last-visit-text {
    font-size: 12px;
}

.dropdown-arrow {
    color: #fff;
    transition: transform 0.3s ease;
}

.user-profile-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-profile-toggle.active + .user-dropdown-menu,
.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-username {
    font-weight: 600;
    color: #2c3e50;
}

.dropdown-usertitle {
    font-size: 12px;
    color: #7f8c8d;
}

.dropdown-section {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f1f2f6;
}

.dropdown-item i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    color: #95a5a6;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.logout-link {
    color: #e74c3c;
}

.logout-link i {
    color: #e74c3c;
}

.logout-link:hover {
    background: #ffe6e6;
}