/* ===== HEADER BÖLÜMÜ ===== */
/* ===== MODERN HEADER STYLES ===== */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1d1d1f;
    padding: 0.5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.08);
}

/* Header Top Bar */
.header-top {
    background: rgba(46, 125, 50, 0.05);
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item {
    color: #004d2c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #004d2c;
}

.divider {
    color: rgba(29, 29, 31, 0.3);
    font-weight: 300;
}

.business-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #004d2c;
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Header */
.header-main {
    padding: 0.6rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaf" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,2 Q16,8 10,14 Q4,8 10,2 Z" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23leaf)"/></svg>') repeat;
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.dropdown {
    position: relative;
}

.nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 0.8rem !important;
    color: #4a4a4a !important; /* Slightly softer text */
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    position: relative !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
}

.nav-link:hover {
    background: rgba(27, 94, 32, 0.08) !important;
    color: #004d2c !important;
    border-color: rgba(27, 94, 32, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* WhatsApp Special Link */
.nav-link.cta-whatsapp {
    background: #25d366 !important;
    color: white !important;
    border-color: #25d366 !important;
}

.nav-link.cta-whatsapp:hover {
    background: #128c7e !important;
    color: white !important;
    border-color: #128c7e !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
}

.nav-icon {
    font-size: 1.1rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1d1d1f;
    min-width: 220px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999999999;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.dropdown.active .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #004d2c;
    padding-left: 2rem;
}

/* New Badge */
.new-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: pulse-new 2s infinite;
}

@keyframes pulse-new {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Legacy CTA styles - kept for mobile and other components if needed */
.cta-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1d1d1f;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-navigation.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #004d2c;
    padding-left: 1.5rem;
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.03);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu a {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    color: rgba(29, 29, 31, 0.7);
}

/* Tarım Market Kategorileri için Özel Stiller */
.mobile-dropdown-menu li:nth-child(-n+7) a {
    color: #004d2c;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.08);
    border-left: 3px solid #a58434;
    margin: 2px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu li:nth-child(-n+7) a:hover {
    background: rgba(76, 175, 80, 0.15);
    color: #004d2c;
    transform: translateX(3px);
}

/* Kategori Başlık Stilleri */
.mobile-dropdown-menu li strong {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: #004d2c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.mobile-dropdown-menu li strong:hover {
    cursor: default;
}

.mobile-cta {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.mobile-cta-btn {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-cta-btn:first-child {
    background: #004d2c;
    color: white;
}

.mobile-cta-btn:last-child {
    background: #25d366;
    color: white;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-section:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(0,0,0,0.2),
        0 5px 15px rgba(255,255,255,0.15) inset,
        0 0 0 1px rgba(255,255,255,0.3);
}

.logo-image {
    width: 75px;
    height: 75px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-section:hover .logo-image {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.main-title {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
    position: relative;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    background: linear-gradient(135deg, #004d2c, #004d2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    text-shadow: none;
    font-weight: 700;
    order: 1;
}

.brand-service {
    background: linear-gradient(135deg, #004d2c, #004d2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    font-weight: 500;
    margin-top: -2px;
    order: 2;
}

.brand-tagline {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    color: rgba(29, 29, 31, 0.7);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
    font-style: italic;
}

/* Header Features */
.header-features {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 60px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    margin-bottom: 0.1rem;
}

.feature-text {
    font-size: clamp(0.5rem, 1.2vw, 0.65rem);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Header Decoration */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
    font-size: 1.2rem;
}

.leaf-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.leaf-2 {
    top: 20%;
    right: 8%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.leaf-3 {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.leaf-4 {
    top: 70%;
    right: 5%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.leaf-5 {
    top: 15%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.leaf-6 {
    top: 80%;
    left: 30%;
    animation-delay: 0.5s;
    animation-duration: 7s;
}

.leaf-7 {
    top: 25%;
    right: 25%;
    animation-delay: 1.5s;
    animation-duration: 9s;
}

.leaf-8 {
    top: 45%;
    left: 15%;
    animation-delay: 2.5s;
    animation-duration: 6s;
}

.leaf-9 {
    top: 35%;
    right: 15%;
    animation-delay: 3.5s;
    animation-duration: 8s;
}

.leaf-10 {
    top: 55%;
    left: 70%;
    animation-delay: 4.5s;
    animation-duration: 7s;
}

.leaf-11 {
    top: 75%;
    right: 60%;
    animation-delay: 0.2s;
    animation-duration: 9s;
}

.leaf-12 {
    top: 85%;
    left: 60%;
    animation-delay: 1.2s;
    animation-duration: 6s;
}

.leaf-13 {
    top: 5%;
    left: 80%;
    animation-delay: 2.2s;
    animation-duration: 8s;
}

.leaf-14 {
    top: 65%;
    right: 30%;
    animation-delay: 3.2s;
    animation-duration: 7s;
}

.leaf-15 {
    top: 40%;
    left: 40%;
    animation-delay: 4.2s;
    animation-duration: 9s;
}

.leaf-16 {
    top: 30%;
    right: 40%;
    animation-delay: 0.8s;
    animation-duration: 6s;
}

.leaf-17 {
    top: 50%;
    left: 25%;
    animation-delay: 1.8s;
    animation-duration: 8s;
}

.leaf-18 {
    top: 90%;
    right: 20%;
    animation-delay: 2.8s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: static;
    display: inline-block;
    margin-left: 1rem;
}

.language-selector {
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    color: #004d2c;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 70px;
    justify-content: center;
}

.language-selector:hover {
    background: rgba(46, 125, 50, 0.2);
    border-color: rgba(46, 125, 50, 0.5);
    color: #004d2c;
    transform: translateY(-1px);
}

.language-dropdown {
    position: fixed;
    top: auto;
    right: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999999999;
    border: 1px solid #e0e0e0;
    margin-top: 5px;
    pointer-events: none;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.language-item {
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.language-item:first-child {
    border-radius: 8px 8px 0 0;
}

.language-item:hover {
    background: linear-gradient(135deg, #a58434 0%, #45a049 100%);
    color: white;
}

.language-arrow {
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.language-selector:hover .language-arrow {
    transform: rotate(180deg);
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

body.rtl .language-dropdown {
    right: auto;
    left: 0;
}

body.rtl .feature-item {
    flex-direction: row-reverse;
}

body.rtl .logo-section {
    flex-direction: row-reverse;
}

/* Header Responsive Styles */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 0.3rem 0;
        font-size: 0.8rem;
    }
    
    .contact-info {
        gap: 0.8rem;
    }
    
    .header-main {
        padding: 0.5rem 0;
    }
    
    .header-content {
        justify-content: flex-start;
        flex-direction: row;
        gap: 1rem;
        position: relative;
        text-align: left;
    }
    
    .header-actions {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    /* Tablet ve desktop için navigation'ı göster */
    @media (min-width: 769px) {
        .main-navigation {
            display: flex !important;
        }
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .logo-section {
        flex: none;
        align-items: center;
    }
    
    .brand-text {
        text-align: left;
        align-items: flex-start;
    }
    
    .main-title {
        font-size: 1.1rem;
        align-items: flex-start;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
    }
    
    .language-switcher {
        margin-left: 0.5rem;
    }
    
    body.rtl .language-switcher {
        margin-right: 0.5rem;
        margin-left: 0;
    }
    
    .language-selector {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .language-dropdown {
        min-width: 140px;
        right: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .header-top {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .header-utilities {
        justify-content: center;
    }
    
    .main-title {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.6rem;
    }
}

/* Tablet için (768px ve üzeri) */
@media (min-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .main-navigation,
    .header-actions {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .logo-image {
        width: 65px;
        height: 65px;
    }
    
    .main-title {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    }
    
    .brand-tagline {
        font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    }
    
    .header-features {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.7rem 1rem;
        min-width: 80px;
    }
    
    .feature-icon {
        font-size: 1rem;
    }
    
    .feature-text {
        font-size: 0.75rem;
    }
}

/* Masaüstü için (1024px ve üzeri) */
@media (min-width: 1024px) {
    .header {
        padding: 1.2rem 0;
    }
    
    .logo-image {
        width: 80px;
        height: 80px;
    }
}

/* Büyük ekranlar için (1200px ve üzeri) */
@media (min-width: 1200px) {
    .logo-image {
        width: 90px;
        height: 90px;
    }
} 