/**
 * Modern Professional Header & Footer Styles
 * Clean, Elegant, E-commerce Optimized
 */

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

.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.announcement-content svg {
    flex-shrink: 0;
}

/* Main Header */
.header-main-wrapper {
    padding: 20px 0;
    background: white;
}

.header-main-content {
    display: grid;
    grid-template-columns: 200px auto 1fr auto;
    align-items: center;
    gap: 24px;
}

/* Desktop Categories Button */
.desktop-categories-wrapper {
    position: relative;
}

.desktop-categories-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.desktop-categories-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.desktop-categories-btn:active {
    transform: translateY(0);
}

.desktop-categories-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -220px;
    min-width: 320px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.desktop-categories-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #2d3436;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.desktop-category-item:first-child {
    border-radius: 12px 12px 0 0;
}

.desktop-category-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.desktop-category-item:hover {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.05), transparent);
    color: #C41E3A;
    padding-left: 24px;
}

.desktop-category-item svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.desktop-category-item:hover svg {
    opacity: 1;
}

.desktop-category-empty {
    padding: 24px;
    text-align: center;
    color: #b2bec3;
    font-size: 14px;
}

/* Logo */
.header-logo-link {
    display: block;
    transition: opacity 0.3s ease;
}

.header-logo-link:hover {
    opacity: 0.85;
}

.header-logo-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

/* Search Bar */
.header-search-wrapper {
    position: relative;
    max-width: 700px;
    width: 100%;
}

.header-search-form {
    display: flex;
    align-items: stretch;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-search-form:focus-within {
    background: white;
    border-color: #C41E3A;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.08);
}

.search-category-wrapper {
    position: relative;
}

.search-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    background: transparent;
    border: none;
    border-right: 1px solid #e9ecef;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 100%;
}

.search-category-btn:hover {
    background: rgba(196, 30, 58, 0.04);
    color: #C41E3A;
}

.search-category-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.search-category-btn.active svg {
    transform: rotate(180deg);
}

.header-search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #2d3436;
    outline: none;
}

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

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: #C41E3A;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-btn:hover {
    background: #8B1538;
}

/* Category Dropdown */
.search-category-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 300px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 450px;
    overflow-y: auto;
}

.search-category-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #2d3436;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.category-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.category-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.category-dropdown-item:hover {
    background: #f8f9fa;
    color: #C41E3A;
    padding-left: 24px;
}

.category-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.category-dropdown-item:hover svg {
    opacity: 1;
}

.category-dropdown-empty {
    padding: 24px;
    text-align: center;
    color: #b2bec3;
    font-size: 14px;
}

/* Header Actions */
.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #2d3436;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.header-action-item:hover {
    background: #f8f9fa;
    color: #C41E3A;
    transform: translateY(-2px);
}

.action-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    flex-shrink: 0;
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C41E3A, #8B1538);
    color: white;
    font-size: 11px;
    font-weight: 800;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(196, 30, 58, 0.4);
    transition: transform 0.2s ease;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 3px 8px rgba(196, 30, 58, 0.4); }
    50% { box-shadow: 0 3px 12px rgba(196, 30, 58, 0.6); }
}

.action-label {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile Menu Trigger */
.mobile-menu-trigger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-trigger:hover {
    background: #f8f9fa;
    border-color: #C41E3A;
}

.mobile-menu-trigger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2d3436;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-trigger:hover span {
    background: #C41E3A;
}

.mobile-menu-trigger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-trigger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu (Hidden on Desktop) */
.mobile-menu-navigation {
    display: none;
}

/* Mobile Categories - Hidden on Desktop */
.mobile-menu-content {
    display: none;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    background: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    color: white;
}

.mobile-menu-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-categories {
    padding: 8px 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    color: #2d3436;
    text-decoration: none;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.3s ease;
}

.mobile-category-item:hover {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.05), transparent);
    padding-left: 28px;
}

.category-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(196, 30, 58, 0.05));
    border-radius: 12px;
    color: #C41E3A;
}

.category-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
}

.category-arrow {
    flex-shrink: 0;
    color: #b2bec3;
    transition: all 0.3s ease;
}

.mobile-category-item:hover .category-arrow {
    color: #C41E3A;
    transform: translateX(4px);
}

.mobile-menu-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #b2bec3;
}

.mobile-menu-empty svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.mobile-menu-empty p {
    margin: 0;
    font-size: 14px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   MODERN FOOTER STYLES
   ============================================ */

.modern-footer {
    background: #1a1d29;
    color: #e4e6eb;
    margin-top: 80px;
}

/* Footer Content */
.footer-content-wrapper {
    padding: 64px 0 48px;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
}

/* Brand Column */
.footer-brand-column {
    max-width: 360px;
}

.footer-brand-logo {
    margin-bottom: 20px;
}

.footer-brand-logo img {
    display: block;
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #b2bec3;
    margin-bottom: 24px;
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-item svg {
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background: #C41E3A;
    transform: translateY(-4px);
}

.social-link-item:hover svg {
    color: white;
    fill: white;
}

/* Footer Columns */
.footer-column-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #C41E3A;
    border-radius: 2px;
}

/* Link Lists */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 12px;
}

.footer-link-list a {
    display: inline-flex;
    align-items: center;
    color: #b2bec3;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-link-list a::before {
    content: '→';
    opacity: 0;
    margin-right: 8px;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-link-list a:hover {
    color: white;
    padding-left: 16px;
}

.footer-link-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Info */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-info li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.footer-contact-info svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #C41E3A;
}

.footer-contact-info a,
.footer-contact-info span {
    color: #b2bec3;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: white;
}

/* Footer Bottom */
.footer-bottom-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copyright {
    font-size: 14px;
    color: #b2bec3;
    margin: 0;
}

.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-text {
    font-size: 13px;
    color: #b2bec3;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    gap: 8px;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    /* Header Mobile - Hamburger menu açılır */
    .announcement-bar {
        font-size: 12px;
        padding: 8px 0;
    }

    .header-main-wrapper {
        padding: 16px 0;
    }

    .header-main-content {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }
    
    /* Hide desktop categories on mobile */
    .desktop-categories-wrapper {
        display: none;
    }

    /* Hide search on mobile */
    .header-search-wrapper {
        display: none;
    }

    /* Show mobile menu trigger */
    .mobile-menu-trigger {
        display: flex;
    }

    /* Adjust header actions */
    .header-actions-wrapper {
        gap: 12px;
    }

    .action-label {
        display: none;
    }

    .header-action-item {
        padding: 8px;
    }

    .footer-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Tablet/Mobile adjustments */

    .header-logo-img {
        max-width: 140px;
        max-height: 45px;
    }

    .search-category-btn {
        padding: 0 16px;
        font-size: 13px;
    }

    .search-category-btn span {
        display: none;
    }

    .search-category-btn svg {
        margin: 0;
    }

    .header-search-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .header-search-btn {
        padding: 0 20px;
    }

    /* Mobile Menu Navigation */
    .mobile-menu-navigation {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 400px;
        height: 100vh;
        background: white;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow: hidden;
    }

    .mobile-menu-navigation.active {
        left: 0;
    }

    .nav-list {
        display: none;
    }
    
    /* Show Mobile Menu Content */
    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Footer Mobile */
    .modern-footer {
        margin-top: 48px;
    }

    .footer-content-wrapper {
        padding: 48px 0 32px;
    }

    .footer-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    /* Footer column order for mobile */
    .footer-brand-column {
        grid-column: 1 / -1;
        order: 1;
    }
    
    .footer-column:nth-child(2) {
        /* Hızlı Linkler */
        order: 2;
    }
    
    .footer-column:nth-child(3) {
        /* Müşteri Hizmetleri */
        order: 3;
    }
    
    .footer-column:nth-child(4) {
        /* İletişim */
        grid-column: 1 / -1;
        order: 4;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-payment-icons {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .header-logo-img {
        max-width: 120px;
        max-height: 40px;
    }

    .header-search-input {
        padding: 12px 14px;
        font-size: 13px;
    }

    .header-search-btn {
        padding: 0 16px;
    }

    .action-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .footer-brand-logo img {
        max-width: 140px;
    }
    
    .footer-grid-layout {
        gap: 24px;
    }

    .payment-methods {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.floating-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.floating-phone {
    background: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    color: white;
}

.floating-phone:hover {
    background: linear-gradient(135deg, #8B1538 0%, #C41E3A 100%);
    color: white;
}

.floating-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.floating-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: white;
}

.floating-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: #2d3436;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #2d3436;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Floating buttons animation on page load */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-btn {
    animation: floatIn 0.5s ease-out;
}

.floating-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.floating-btn:nth-child(2) {
    animation-delay: 0.2s;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 52px;
        height: 52px;
    }
    
    .floating-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .floating-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-actions {
        bottom: 12px;
        right: 12px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
    }
    
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}
