/* ===========================================
   Kuk Mega Menü - Mobil v2.8.0
   Full-screen overlay, slide-in content
   =========================================== */

/* --- HAMBURGER TRIGGER --- */
.kuk-mobile-trigger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.kuk-mobile-trigger:hover,
.kuk-mobile-trigger:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.kuk-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animasyonu (overlay açıkken) */
.kuk-mobile-trigger[aria-expanded="true"] .kuk-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.kuk-mobile-trigger[aria-expanded="true"] .kuk-hamburger-line:nth-child(2) {
    opacity: 0;
}
.kuk-mobile-trigger[aria-expanded="true"] .kuk-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- OVERLAY --- */
.kuk-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* Parent container kısıtlamalarını aş */
.kuk-mobile-menu {
    position: static;
}

.kuk-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* --- PANEL (Ana kapsayıcı) --- */
.kuk-mobile-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.kuk-mobile-overlay.open .kuk-mobile-panel {
    transform: translateX(0);
}

/* --- PANEL HEADER --- */
.kuk-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #227759;
    flex-shrink: 0;
}

.kuk-mobile-header h2 {
    font-family: var(--font-serif, "Figtree", serif);
    font-size: 18px;
    color: #fff;
    margin: 0;
    font-weight: 500;
}

.kuk-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.kuk-mobile-close:hover,
.kuk-mobile-close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* --- SIDEBAR (Menü Listesi) --- */
.kuk-mobile-sidebar {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

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

.kuk-mobile-item {
    border-bottom: 1px solid #f1f5f9;
}

a.kuk-mobile-link,
.kuk-mobile-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.kuk-mobile-link:active {
    background: #f8fafc;
}

.kuk-mobile-icon {
    margin-right: 14px;
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.kuk-mobile-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.kuk-mobile-text {
    flex: 1;
}

.kuk-mobile-chevron {
    margin-left: auto;
    opacity: 0.4;
    display: flex;
    color: #9ca3af;
}

.kuk-mobile-item:active .kuk-mobile-link {
    color: var(--dynamic-color, #15803d);
}

.kuk-mobile-item:active .kuk-mobile-chevron {
    color: var(--dynamic-color, #15803d);
    opacity: 1;
}

/* Seçili (aktif) menü öğesi — JS tarafından .selected eklenir */
.kuk-mobile-item.selected .kuk-mobile-link {
    color: var(--dynamic-color, #15803d);
    background: #f0fdf4;
}

.kuk-mobile-item.selected .kuk-mobile-chevron {
    color: var(--dynamic-color, #15803d);
    opacity: 1;
}

/* --- CONTENT SLIDE PANEL --- */
.kuk-mobile-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.kuk-mobile-content.open {
    transform: translateX(0);
}

.kuk-mobile-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.kuk-mobile-content-title {
    flex: 1;
    font-family: var(--font-serif, "Figtree", serif);
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kuk-mobile-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 4px;
    -webkit-tap-highlight-color: transparent;
}

.kuk-mobile-back:hover,
.kuk-mobile-back:focus-visible {
    color: #374151;
    outline: none;
}

.kuk-mobile-content-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- CONTENT VIEWS --- */
.kuk-mobile-view {
    display: none !important;
    padding: 20px;
}

.kuk-mobile-view.active {
    display: block !important;
}

/* Hero görseli olan view'larda üst padding sıfır */
.kuk-mv-hero {
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
    margin-bottom: 20px;
}

/* --- STANDARD LAYOUT (Mobil) --- */
.kuk-mv-hero img {
    width: 100%;
    object-fit: cover;
    display: block;
}

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

.kuk-mv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 400px) {
    .kuk-mv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 320px) {
    .kuk-mv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kuk-mv-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 8px 4px;
    border-radius: 10px;
    transition: background 0.15s;
}

.kuk-mv-card:active {
    background: #f8fafc;
}

.kuk-mv-card img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: var(--dynamic-color, #15803d) 0px 1px 0px;
}

.kuk-mv-card span {
    font-size: 11px;
    color: #374151;
    line-height: 1.3;
    font-weight: 500;
}

/* --- DECORATION LAYOUT (Mobil) --- */
.kuk-mv-deco-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.kuk-mv-deco-header h2 {
    font-family: var(--font-serif, "Figtree", serif);
    font-size: 22px;
    color: var(--c-gold-text, #b45309);
    margin: 0 0 4px;
}

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

.kuk-mv-deco-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.kuk-mv-deco-item {
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.kuk-mv-deco-item:active {
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.15);
}

.kuk-mv-deco-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.kuk-mv-deco-info {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kuk-mv-deco-info h3 {
    font-family: var(--font-serif, "Figtree", serif);
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.kuk-mv-deco-info span {
    color: var(--c-gold-text, #b45309);
    font-size: 14px;
}

/* --- COLLECTION LAYOUT (Mobil) --- */
.kuk-mobile-view.kuk-mobile-view--collection.active {
    display: flex !important;
    flex-direction: column;
    background: #0F1829;
    min-height: 100%;
}

.kuk-mv-col-header {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.kuk-mv-col-header h2 {
    font-family: var(--font-serif, "Figtree", serif);
    font-size: 22px;
    color: #fff;
    margin: 0;
    display: inline;
}

.kuk-mv-col-all {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
    border: 1px solid #334155;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
}

.kuk-mv-col-header span {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-top: 6px;
}

.kuk-mv-col-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.kuk-mv-col-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    flex: 1 1 0;
    min-height: 180px;
}

.kuk-mv-col-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kuk-mv-col-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.kuk-mv-col-tag {
    color: #fbbf24;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.kuk-mv-col-overlay h3 {
    color: #fff;
    font-family: var(--font-serif, "Figtree", serif);
    font-size: 18px;
    margin: 0;
}

.kuk-mv-col-overlay p {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
    margin: 6px 0 0;
}

/* --- BODY SCROLL LOCK --- */
body.kuk-menu-open {
    overflow: hidden;
}

/* --- MOBILE FOOTER (Hızlı Linkler + Copyright) --- */
.kuk-mobile-footer {
    flex-shrink: 0;
    padding: 16px 20px 20px;
    border-top: 1px solid #f1f5f9;
}

.kuk-mobile-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.kuk-mobile-quick-link {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.kuk-mobile-quick-link:active {
    opacity: 0.6;
}

.kuk-mobile-copyright {
    font-size: 11px;
    color: #c0c0c0;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 500;
}

/* --- REDUCED MOTION (Erişilebilirlik) --- */
@media (prefers-reduced-motion: reduce) {
    .kuk-mobile-overlay,
    .kuk-mobile-panel,
    .kuk-mobile-content,
    .kuk-mobile-trigger,
    .kuk-mobile-close,
    .kuk-mobile-back,
    .kuk-mobile-link,
    .kuk-hamburger-line,
    .kuk-mv-card,
    .kuk-mv-deco-item,
    .kuk-mv-col-card,
    .kuk-mobile-quick-link {
        transition: none !important;
        animation: none !important;
    }
}
