/**
 * Basit Header / Menü Stilleri
 */

/* Header Ana Stil */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 70px;
}

/* Logo */
.header-logo a {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #222;
    letter-spacing: -0.5px;
}

.header-logo a span {
    color: #f2811d;
}

/* Kategoriler */
.header-categories {
    position: relative;
}

.categories-toggle {
    background: transparent;
    border: 2px solid #222;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.categories-toggle:hover {
    background: #222;
    color: #fff;
}

.categories-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 8px;
    display: none;
    z-index: 100;
}

.categories-dropdown.show {
    display: block;
}

.categories-dropdown a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #222;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.categories-dropdown a:hover {
    background: #f9fafb;
    color: #f2811d;
}

.categories-dropdown a:first-child {
    font-weight: 600;
    color: #f2811d;
    background: #fff3ec;
}

/* Arama */
.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search form {
    display: flex;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.header-search form:focus-within {
    border-color: #f2811d;
}

.header-search input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    outline: none;
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search button {
    background: #f2811d;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #e55a1f;
}

/* Giriş / Kayıt */
.header-auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-link {
    text-decoration: none;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.auth-link:hover {
    background: #f9fafb;
    color: #f2811d;
}

.auth-register {
    background: #f2811d;
    color: #fff;
}

.auth-register:hover {
    background: #e55a1f;
    color: #fff;
}

.auth-admin {
    background: #8b5cf6;
    color: #fff;
}

.auth-admin:hover {
    background: #7c3aed;
    color: #fff;
}

.auth-seller {
    background: #10b981;
    color: #fff;
}

.auth-seller:hover {
    background: #059669;
    color: #fff;
}

/* Mobil Menü Butonu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Header Alt Bölüm */
.header-bottom {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.header-bottom .header-container {
    min-height: 50px;
    padding: 8px 20px;
}

.header-settings {
    display: flex;
    gap: 24px;
    align-items: center;
}

.setting-group {
    display: flex;
    align-items: center;
}

.setting-group select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    min-width: 130px;
}

.setting-group select:hover {
    border-color: #f2811d;
}

.setting-group select:focus {
    outline: none;
    border-color: #f2811d;
    box-shadow: 0 0 0 3px rgba(242, 129, 29, 0.1);
}

/* Mobil Menü */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.mobile-menu-header span {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.mobile-menu-header button {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    color: #6b7280;
}

.mobile-menu-content {
    padding: 16px;
}

.mobile-search {
    display: flex;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mobile-search input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
}

.mobile-search button {
    background: #f2811d;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
}

.mobile-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-section:last-child {
    border-bottom: none;
}

.mobile-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
}

.mobile-section a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #222;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    margin-bottom: 4px;
}

.mobile-section a:hover {
    background: #f9fafb;
    color: #f2811d;
}

.mobile-auth-btn {
    text-align: center;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    margin-bottom: 8px;
}

.mobile-auth-btn.primary {
    background: #f2811d;
    color: #fff;
    border-color: #f2811d;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #222;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    margin-bottom: 4px;
}

.mobile-nav-link:hover {
    background: #f9fafb;
    color: #f2811d;
}

.mobile-nav-link.admin-link {
    background: #f3e8ff;
    color: #8b5cf6;
}

.mobile-nav-link.admin-link:hover {
    background: #e9d5ff;
    color: #7c3aed;
}

.mobile-nav-link.seller-link {
    background: #d1fae5;
    color: #10b981;
}

.mobile-nav-link.seller-link:hover {
    background: #a7f3d0;
    color: #059669;
}

.mobile-nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.mobile-nav-text {
    font-weight: 500;
}

.mobile-setting {
    margin-bottom: 12px;
}

.mobile-setting select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

/* Google Translate Widget Stilleri */
#google_translate_element,
#google_translate_element_mobile {
    display: inline-block;
}

#google_translate_element .goog-te-gadget,
#google_translate_element_mobile .goog-te-gadget {
    font-family: inherit !important;
}

#google_translate_element .goog-te-gadget-simple,
#google_translate_element_mobile .goog-te-gadget-simple {
    background-color: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

#google_translate_element .goog-te-gadget-simple:hover,
#google_translate_element_mobile .goog-te-gadget-simple:hover {
    border-color: #f2811d !important;
}

#google_translate_element .goog-te-gadget-icon,
#google_translate_element_mobile .goog-te-gadget-icon {
    display: none !important;
}

#google_translate_element .goog-te-gadget-simple span,
#google_translate_element_mobile .goog-te-gadget-simple span {
    color: #222 !important;
}

/* Google Translate banner gizle */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Google Translate dropdown menu */
.goog-te-menu-frame {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
}

/* Mobil Menü Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.mobile-menu-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-search {
        max-width: 300px;
    }
    
    .header-bottom {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        gap: 12px;
        min-height: 60px;
    }
    
    .header-logo a {
        font-size: 22px;
    }
    
    .header-categories,
    .header-search,
    .header-auth {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .header-bottom {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        min-height: 56px;
    }
    
    .header-logo a {
        font-size: 20px;
    }
}

