/* Header Güncellemeleri */

.logo a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    gap: 4px;
    font-size: 12px;
    transition: color 0.3s;
}

.header-action-item i {
    font-size: 20px;
}

.header-action-item:hover {
    color: var(--primary-color);
}

.header-action-item .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* Navigasyon Bar */
.header-nav-orange {
    background: var(--primary-color);
    padding: 0;
}

.orange-nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.orange-nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: background 0.3s;
    display: block;
}

.orange-nav a:hover,
.orange-nav .dropdown:hover > a {
    background: rgba(255, 255, 255, 0.1);
}

.orange-nav .dropdown {
    position: relative;
}

.orange-nav .dropdown-menu {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    margin-top: 0;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 9999;
    padding: 10px 0;
}

/* Genel dropdown hover kuralını override et - Desktop'ta hover ile açılır */
.orange-nav .dropdown:hover .dropdown-menu {
    display: flex !important;
}

/* Dropdown menü açıkken de görünür kalmalı */
.orange-nav .dropdown:hover .dropdown-menu,
.orange-nav .dropdown-menu:hover {
    display: flex !important;
}

.orange-nav .dropdown-menu a {
    color: var(--text-dark);
    padding: 12px 20px;
    display: block;
    white-space: nowrap;
}

.orange-nav .dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.header-links a {
    color: var(--text-dark);
}


/* Hero Banner Güncellemesi */
.hero-banner {
    background: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    background: var(--primary-gradient);
    border-radius: 12px;
    padding: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.campaign-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dc2626;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.hero-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.hero-product-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.hero-product-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 968px) {
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
        max-width: 100%;
    }
    
    .orange-nav {
        overflow-x: auto;
        padding: 0 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .hero-banner-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-main-content {
        gap: 8px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .search-bar {
        margin: 10px 0 0 0;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 45px 10px 15px;
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-action-item {
        font-size: 10px;
    }
    
    .header-action-item i {
        font-size: 18px;
    }
    
    .header-action-item span:not(.badge) {
        display: none;
    }
    
    .orange-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        padding: 80px 0 20px 0;
        transition: left 0.3s ease;
        z-index: 9998;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        gap: 0;
    }
    
    .orange-nav.mobile-open {
        left: 0;
    }
    
    .orange-nav a,
    .orange-nav .dropdown-toggle {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
    }
    
    .orange-nav .dropdown-toggle i {
        transition: transform 0.3s;
        margin-left: 10px;
    }
    
    .orange-nav .dropdown.mobile-open .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    /* Mobilde hover'ı devre dışı bırak, sadece tıklama ile açılsın */
    .orange-nav .dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    .orange-nav .dropdown-menu {
        position: static;
        display: none !important;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        min-width: auto;
        border-radius: 0;
    }
    
    .orange-nav .dropdown.mobile-open .dropdown-menu {
        display: block !important;
        z-index: 9999;
    }
    
    .orange-nav .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 14px;
    }
    
    .orange-nav .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9997;
        pointer-events: none;
    }
    
    /* Dropdown menü overlay'in üstünde olmalı */
    .orange-nav .dropdown-menu {
        z-index: 9999;
    }
    
    .mobile-menu-toggle.active i::before {
        content: '\f00d'; /* X icon */
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 14px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 9px 40px 9px 12px;
    }
    
    .search-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .header-action-item {
        min-width: 44px;
    }
    
    .header-action-item i {
        font-size: 16px;
    }
    
    .orange-nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-text p {
        font-size: 14px;
    }
}

