/* ===========================================
   Kuk Mega Menü - v2.8.0
   =========================================== */

:root {
    --font-serif: "Figtree", serif;
    --font-sans: "Figtree", sans-serif;
    --c-white: #ffffff;
    --c-dark-blue: #0F1829;
    --c-gold-text: #b45309;
}

/* --- RESET --- */
.kuk-menu-wrapper * { box-sizing: border-box; }

.kuk-menu-wrapper {
    font-family: var(--font-sans);
    position: relative;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.main-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
}

/* --- SIDEBAR (absolute: altındaki elemanların üstüne biner) --- */
.sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    background: var(--c-white);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    height: fit-content;
    max-height: 520px;
    transition: all 0.5s ease;
    flex-shrink: 0;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    padding: 15px;
    border-radius: 16px 16px 0 0;
    background-color: #227759;
}

.sidebar-header h2 {
    font-family: var(--font-serif);
    font-size: 18px !important;
    color: #fff;
    margin: 0 0 0 10px;
    font-weight: 500;
}
h2.mega-menu-sidebar-title {
    font-size: 18px !important;
}
.toggle-icon {
    margin-right: 10px;
    color: #fff;
    transition: transform 0.4s ease;
    font-size: 18px;
}

.sidebar-header:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-content {
    overflow: hidden;
    max-height: 750px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.sidebar-content.closed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* --- MENU LIST --- */
.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.menu-item {
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

a.menu-link,
.menu-link {
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #4b5563;
    text-transform: uppercase;
    transition: color 0.2s;
}

.menu-link .icon {
    margin-right: 12px;
    display: inline-block; /* Flex yerine block/inline-block kullanmalıyız ki boyut verebilelim */
    width: 20px;
    height: 20px;
    background-color: #4b5563; /* Varsayılan ikon rengi (Yazı rengiyle aynı) */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.7;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.menu-link .icon img {
    display: none; /* Maske kullandığımız için orijinal resim etiketine gerek kalmadı, gizliyoruz */
}
.menu-link .chevron {
    margin-left: auto;
    opacity: 0.4;
    transition: transform 0.2s, opacity 0.2s ease;
    display: flex;
}

/* HOVER & ACTIVE */
.menu-item:hover { background-color: #f8fafc; }
.menu-item:hover .menu-link,
.menu-item.active .menu-link { color: var(--dynamic-color, #15803d) !important; }
/* Resimli ikonların hover durumu (Maske için background-color değişir) */
.menu-item:hover .icon,
.menu-item.active .icon { 
    background-color: var(--dynamic-color, #15803d); 
    opacity: 1; 
}

/* Sağdaki ok (chevron) SVG'sinin hover durumu (Doğrudan color değişir) */
.menu-item:hover .chevron,
.menu-item.active .chevron { 
    color: var(--dynamic-color, #15803d); 
    opacity: 1; 
    transform: translateX(4px); 
}
.menu-item:hover .chevron,
.menu-item.active .chevron { transform: translateX(4px); }

/* --- CONTENT AREA (sidebar genişliği + gap kadar sola boşluk) --- */
.content-area {
    width: calc(100% - 240px);
    max-width: 1060px;
    height: 590px;
    margin-left: 240px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: all 0.4s ease;
}

.content-area.closed {
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    pointer-events: none;
    margin-left: 240px;
    padding: 0;
    box-shadow: none;
    border: none;
}

.content-view {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.content-view.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.white-bg { background: #fff; }

/* --- STANDARD LAYOUT --- */
.aranjman-view {
    display: flex;
    height: 100%;
    background: #fff;
}

.aranjman-left {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.aranjman-view.has-promo .aranjman-left { width: 65%; }
.aranjman-view.no-promo .aranjman-left { width: 100%; }

.aranjman-left::-webkit-scrollbar { width: 6px; }
.aranjman-left::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.aranjman-header {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--dynamic-color, #15803d);
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.aranjman-header::before {
    content: "—";
    color: currentColor;
    font-size: 28px;
    font-weight: 300;
}

.aranjman-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.aranjman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.aranjman-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
}

.aranjman-card:hover { transform: translateY(-5px); }

.aranjman-card img {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
    background: #f8fafc;
    box-shadow: var(--dynamic-color, #15803d) 0px 1px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px inset;
    transition: box-shadow 0.3s;
}

.aranjman-card span {
    font-size: 13px;
    color: #374151;
    line-height: 1.3;
    font-weight: 500;
}

.aranjman-right {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
}

/* PROMO CARD */
.promo-card {
    background: #fff;
    padding: 20px;
    width: 320px;
    border-left: 5px solid var(--dynamic-color, #15803d);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    text-align: left;
    position: relative;
    z-index: 2;
}

.promo-tag {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: block;
}

.promo-card h3 {
    font-family: var(--font-serif);
    font-size: 25px;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.25;
    font-weight: 500;
}

.promo-card a {
    text-decoration: none;
    color: var(--dynamic-color, #15803d);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

/* --- DECORATION LAYOUT --- */
.deco-bg {
    background-color: #fff;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.deco-bg::-webkit-scrollbar { width: 6px; }
.deco-bg::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.deco-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.deco-header h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--c-gold-text);
    margin: 0;
}

.deco-header span {
    font-size: 13px;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.deco-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
    margin-top: 10px;
}

.deco-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.deco-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 25px -5px rgba(180, 83, 9, 0.15);
}

.deco-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.deco-item:hover img { transform: scale(1.05); }

.deco-overlay {
    padding: 18px 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deco-overlay h3 {
	max-width: 85% !important;
    color: #1f2937;
    font-family: var(--font-serif);
    font-size: 16px !important;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.deco-item:hover .deco-overlay h3 { color: var(--c-gold-text); }

.circle-icon-overlay {
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--c-gold-text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.deco-item:hover .circle-icon-overlay {
    background: var(--c-gold-text);
    color: #fff;
    transform: scale(1.1);
}

/* --- COLLECTION LAYOUT --- */
.dark-bg {
    background-color: var(--c-dark-blue);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collections-container { width: 100%; }

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.col-header h2 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 32px;
    margin: 0 0 5px;
}

.col-header .sub {
    color: #94a3b8;
    font-size: 13px;
    display: block;
}

.col-header .top-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: 4px;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    height: 350px;
}

.poster-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.poster-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.poster-card .img-default { opacity: 1; z-index: 1; }
.poster-card .img-hover { opacity: 0; z-index: 2; }
.poster-card:hover .img-default { opacity: 0; }
.poster-card:hover .img-hover { opacity: 1; transform: scale(1.05); }

.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 3;
}

.poster-tag {
    color: #fbbf24;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.poster-overlay h3 {
    color: #fff !important;
    font-family: var(--font-serif);
    font-size: 28px;
    margin: 0;
}

.poster-desc {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.poster-card:hover .poster-desc {
    margin-top: 10px;
    opacity: 1;
    max-height: 60px;
}

/* --- REDUCED MOTION (Erişilebilirlik) --- */
@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-content,
    .content-area,
    .content-view,
    .menu-item,
    .menu-link,
    .menu-link .icon,
    .menu-link .chevron,
    .aranjman-card,
    .aranjman-card img,
    .deco-item,
    .deco-item img,
    .circle-icon-overlay,
    .poster-card img,
    .poster-desc,
    .toggle-icon,
    .kuk-mobile-overlay,
    .kuk-mobile-panel,
    .kuk-mobile-content,
    .kuk-hamburger-line {
        transition: none !important;
        animation: none !important;
    }
}

/* --- RESPONSIVE (1024px-1280px arası laptop ekranları) --- */
@media (max-width: 1340px) {
    .main-container {
        padding: 0 20px;
    }
}

@media (max-width: 1100px) {
    .sidebar {
        width: 200px;
    }

    .content-area {
        width: calc(100% - 220px);
        margin-left: 220px;
    }

    .content-area.closed {
        margin-left: 220px;
    }

    .aranjman-left {
        padding: 30px;
    }

    .aranjman-header {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .deco-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
