/**
 * SKY GÖRSEL HEADER NAVIGATION - CLEAN VERSION
 * Tabbed Canvas Menu Support
 */

body {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   HEADER STYLES
   ======================================== */

.sgc-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.sgc-header.normal {
    position: relative;
    transform: translateY(0);
}

.sgc-header.sticky {
    position: fixed;
    top: 0;
    z-index: 1000;
    transform: translateY(-100%); /* Başlangıçta yukarıda */
    opacity: 0;
}

.sgc-header.sticky.visible {
    transform: translateY(0); /* Aşağı kayarak gelsin ve orda kalsın */
    opacity: 1;
}

/* Admin bar uyumluluğu */
.sticky-header-enabled.admin-bar .sgc-header.sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .sticky-header-enabled.admin-bar .sgc-header.sticky {
        top: 46px;
    }
}

.sgc-header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.sgc-nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 60px;
}

/* ========================================
   LOGO STYLES
   ======================================== */

.sgc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sgc-logo-squares {
    display: flex;
    gap: 2px;
}

.sgc-logo-square {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.sgc-logo-square.s { background-color: #0066cc; }
.sgc-logo-square.k { background-color: #cc0000; }
.sgc-logo-square.y { background-color: #00cc66; }

.sgc-logo:hover .sgc-logo-square {
    transform: scale(1.1);
}

.sgc-logo-text {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    line-height: 1.2;
}

.sgc-logo-text .site-title {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

.sgc-logo-text .site-title a {
    color: #333;
    text-decoration: none;
}

.sgc-logo-text .site-title a:hover {
    color: #cc0000;
}

.custom-logo-wrapper {
    max-height: 60px;
    overflow: hidden;
}

.custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 200px;
}

/* ========================================
   DESKTOP NAVIGATION
   ======================================== */

.sgc-desktop-nav {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    justify-content: flex-end;
}

.sgc-desktop-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sgc-desktop-nav .menu-item {
    position: relative;
    display: inline-block;
}

.sgc-desktop-nav .menu-item > a {
    display: block;
    padding: 1.5rem 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.sgc-desktop-nav .menu-item > a:hover {
    color: #cc0000;
}

.sgc-desktop-nav .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #cc0000;
    transition: width 0.3s ease;
}

.sgc-desktop-nav .menu-item > a:hover::after,
.sgc-desktop-nav .menu-item.current-menu-item > a::after,
.sgc-desktop-nav .menu-item.current-menu-ancestor > a::after {
    width: 100%;
}

.sgc-desktop-nav .menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.sgc-desktop-nav .menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

.sgc-desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
}

.sgc-desktop-nav .menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sgc-desktop-nav .sub-menu .menu-item {
    width: 100%;
    position: relative;
}

.sgc-desktop-nav .sub-menu .menu-item a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #555;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 0;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    overflow: hidden;
}

.sgc-desktop-nav .sub-menu .menu-item a:hover {
    background-color: #cc0000;
    color: #fff!important;
    padding-left: 2rem;
}

.sgc-desktop-nav .sub-menu .menu-item a::after {
    display: none;
}

.sgc-desktop-nav .sub-menu .menu-item.highlight a {
    color: #cc0000;
    font-weight: 600;
    border-left: 3px solid #cc0000;
    padding-left: 1.25rem;
}

.sgc-desktop-nav .sub-menu .menu-item.highlight a:hover {
    background-color: #cc0000;
    color: white;
    border-left-color: white;
}

/* ========================================
   ALL PRODUCTS BUTTON
   ======================================== */

.sgc-all-products-btn {
    background: #cc0000;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sgc-all-products-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.sgc-all-products-btn:hover::before {
    left: 100%;
}

.sgc-all-products-btn:hover {
    background: #aa0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* ========================================
   SOCIAL ICONS
   ======================================== */

.sgc-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sgc-social-icon {
    width: 24px;
    height: 24px;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgc-social-icon:hover {
    color: #cc0000;
    transform: translateY(-2px);
}

/* ========================================
   HAMBURGER MENU
   ======================================== */

.sgc-hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.sgc-hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.sgc-hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.sgc-hamburger span:nth-child(1) { top: 0px; }
.sgc-hamburger span:nth-child(2) { top: 8px; }
.sgc-hamburger span:nth-child(3) { top: 16px; }

.sgc-hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.sgc-hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.sgc-hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* ========================================
   CANVAS MENU
   ======================================== */

.sgc-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sgc-canvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sgc-canvas-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    z-index: 1500;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sgc-canvas-menu.active {
    right: 0;
}

.sgc-canvas-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f8;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sgc-canvas-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sgc-canvas-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sgc-canvas-close:hover {
    background: #f0f0f0;
    color: #cc0000;
    transform: rotate(90deg);
}

ul.sgc-canvas-menu-list {
    margin: 0;
    padding: 0;
}

ul.sgc-primary-menu-list {
    margin: 0;
    padding: 0;
}

/* ========================================
   CANVAS TABS (MOBILE ONLY)
   ======================================== */

.sgc-canvas-tabs {
    display: none;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 70px;
    z-index: 9;
}

.sgc-canvas-tab-buttons {
    display: flex;
    width: 100%;
    border: 0px!important;
}

.sgc-canvas-tab-button {
    flex: 1;
    padding: 15px 10px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 0px!important;
}

.sgc-canvas-tab-button.active {
    color: #cc0000;
    background: white;
    border: 0px!important;
}

.sgc-canvas-tab-button:hover {
    border: 0px !important;
}

.sgc-canvas-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #cc0000, #ff4444);
}

.sgc-canvas-tab-button:hover:not(.active) {
    color: #333;
    background: #f0f0f0;
}

/* ========================================
   CANVAS CONTENT
   ======================================== */

.sgc-canvas-content {
    padding: 0;
    flex: 1;
    position: relative;
}

.sgc-canvas-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sgc-canvas-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   PRIMARY MENU STYLES (KURUMSAL TAB)
   ======================================== */

.sgc-primary-menu-content {
    padding: 20px 0;
}

.sgc-primary-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.sgc-primary-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.sgc-primary-menu-link:hover {
    color: #cc0000;
    background: #f8f8f8;
    padding-left: 25px;
}

.sgc-primary-menu-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #666, #999);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sgc-primary-menu-link:hover .sgc-primary-menu-icon {
    background: linear-gradient(135deg, #cc0000, #ff4444);
    transform: scale(1.1);
}

/* ========================================
   CANVAS MENU ITEMS (ÜRÜNLER TAB)
   ======================================== */

.sgc-canvas-menu-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.sgc-canvas-menu-item:hover {
    background: #f8f8f8;
}

.sgc-canvas-menu-item.highlight .sgc-canvas-menu-item-content {
    font-size: 20px;
    color: #454545;
    font-weight: 600;
    text-decoration: none;
}

.sgc-canvas-menu-item-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #333;
    font-weight: 500;
    position: relative;
    width: 100%;
    text-decoration: none;
}

.sgc-canvas-menu-item.has-submenu .sgc-canvas-menu-item-content::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sgc-canvas-menu-item.has-submenu.open .sgc-canvas-menu-item-content::after {
    transform: translateY(-50%) rotate(180deg);
    color: #cc0000;
}

.sgc-canvas-menu-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgc-canvas-menu-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.sgc-canvas-menu-item:hover .sgc-canvas-menu-icon {
    transform: scale(1.05);
}

/* ========================================
   CANVAS SUBMENU
   ======================================== */

.sgc-canvas-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f8f8;
}

.sgc-canvas-submenu.active {
    max-height: 500px;
}

.sgc-canvas-submenu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #454545;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    transition: all 0.3s ease;
}

a.sgc-canvas-submenu-item {
    color: #454545;
}

.sgc-canvas-submenu-item:hover {
    color: #cc0000;
    background: #fff;
    padding-left: 20px;
}

.sgc-canvas-submenu-item:last-child {
    border-bottom: none;
}

.sgc-canvas-submenu-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* ========================================
   BODY CLASSES
   ======================================== */

body.sgc-canvas-open {
    overflow: hidden;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .sgc-desktop-nav {
        display: none;
    }

    .sgc-hamburger-btn {
        display: block;
    }

    .sgc-canvas-menu {
        width: 320px;
        right: -320px;
    }
    
    .sgc-canvas-tabs {
        display: block;
    }
    
    .sgc-canvas-title {
        font-size: 16px;
    }

    .sgc-nav-container {
        padding: 15px 20px;
    }

    .sgc-social-icons {
        display: none;
    }

    body.sgc-canvas-open {
        transform: translateX(-320px);
    }

    .sticky-header-enabled.admin-bar .sgc-header {
        top: 46px;
    }
    
    .sgc-canvas-menu.active {
        right: -100%!important;
        
    }
}

@media (max-width: 480px) {
    .sgc-canvas-menu {
        width: 100%;
        right: -100%;
    }

    body.sgc-canvas-open {
        transform: translateX(-100%);
    }

    .sgc-logo-text {
        font-size: 12px;
    }

    .sgc-logo-square {
        width: 16px;
        height: 16px;
    }

    .sgc-nav-container {
        padding: 10px 15px;
    }
    
    .sgc-canvas-tab-button {
        font-size: 13px;
        padding: 12px 8px;
    }
    
    .sgc-canvas-tab-button i {
        display: block;
        margin-bottom: 2px;
        font-size: 14px;
    }
}

/* Desktop - Hide tabs, show only products */
@media (min-width: 769px) {
    .sgc-canvas-tabs {
        display: none !important;
    }
    
    .sgc-canvas-tab-content[data-tab="products"] {
        display: block !important;
    }
    
    .sgc-canvas-tab-content[data-tab="primary"] {
        display: none !important;
    }
}

/* ========================================
   ADMIN BAR COMPATIBILITY
   ======================================== */

@media screen and (max-width: 782px) {
    .sticky-header-enabled.admin-bar .sgc-header {
        top: 46px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.sgc-nav-link:focus,
.sgc-all-products-btn:focus,
.sgc-canvas-close:focus,
.sgc-hamburger-btn:focus,
.sgc-desktop-nav .menu-item a:focus {
    outline: 0px!important;
    outline-offset: 0px!important;
}

/* ========================================
   WORDPRESS COMPATIBILITY
   ======================================== */

#site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

#site-navigation li {
    position: relative;
}

#site-navigation .current-menu-item > a,
#site-navigation .current-menu-ancestor > a {
    color: #cc0000;
}

#site-navigation .current-menu-item > a::after,
#site-navigation .current-menu-ancestor > a::after {
    width: 100%;
}