/* Mutfak Dostları Derneği CMS Global Stylesheet */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #FAF8F6;
    color: #241C1B;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #8B2331;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #6E1B27;
    text-decoration: underline;
}

/* Nav styles override to support standard links */
header nav button,
header nav a.nav-link {
    padding: 9px 14px;
    border-radius: 7px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

header nav a.nav-link {
    background: transparent;
    color: #5A514F;
}

header nav a.nav-link:hover {
    background: rgba(139, 35, 49, 0.05);
    color: #8B2331;
    text-decoration: none;
}

header nav a.nav-link.active {
    background: #8B2331;
    color: #fff;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.lang-switch-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    background: #FAF8F6;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ECE6E3;
    margin-left: 12px;
    white-space: nowrap;
}
.lang-btn {
    color: #8A7F7C;
    text-decoration: none;
    transition: color 0.2s ease;
}
.lang-btn:hover {
    color: #8B2331;
    text-decoration: none;
}
.lang-btn.active {
    color: #8B2331;
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}
.lang-divider {
    color: #ECE6E3;
    font-weight: 400;
}

/* Mobile Nav Toggle (hamburger) - hidden on desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #ECE6E3;
    border-radius: 7px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #8B2331;
    flex-shrink: 0;
}

/* Dropdown Navigation Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border: 1px solid #ECE6E3;
    border-radius: 8px;
    padding: 6px 0;
    z-index: 100;
}
.dropdown-content a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #5A514F;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: left;
}
.dropdown-content a:hover {
    background: rgba(139, 35, 49, 0.05) !important;
    color: #8B2331 !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Lightbox Styles */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 14, 13, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #F2CBD3;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
}

.lightbox-nav:hover {
    background: #8B2331;
    border-color: #8B2331;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-caption {
    color: #FAF8F6;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* Image zoom cursor */
.gallery-trigger {
    cursor: zoom-in;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-trigger:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Form Styles for Admin */
.admin-input, .admin-textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 7px;
    border: 1px solid #ECE6E3;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input:focus, .admin-textarea:focus {
    border-color: #8B2331;
}

.admin-btn {
    padding: 12px 22px;
    border-radius: 7px;
    border: none;
    background: #8B2331;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-btn:hover {
    background: #6E1B27;
}

.admin-btn-secondary {
    padding: 10px 14px;
    border-radius: 7px;
    border: 1px solid #ECE6E3;
    background: #fff;
    color: #5A514F;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-secondary:hover {
    background: #FAF8F6;
    border-color: #8A7F7C;
}

.admin-btn-danger {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #ECE6E3;
    background: #fff;
    color: #8B2331;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-danger:hover {
    background: #FBEFF1;
    border-color: #8B2331;
}

/* File Upload drag/drop styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #ECE6E3;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #FAF8F6;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload-wrapper:hover {
    border-color: #8B2331;
    background: #FBEFF1;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    font-size: 13.5px;
    color: #5A514F;
    font-weight: 500;
}

.file-upload-icon {
    font-size: 24px;
    color: #8A7F7C;
    margin-bottom: 8px;
    display: block;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    header {
        padding: 14px 20px !important;
    }

    .nav-toggle {
        display: flex;
    }

    header nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 12px;
        gap: 4px;
    }

    header nav.nav-open {
        display: flex;
    }

    header nav a.nav-link {
        width: 100%;
        padding: 12px 14px;
    }

    .lang-switch-container {
        margin-left: 14px;
        margin-top: 10px;
        margin-bottom: 10px;
        align-self: flex-start;
    }

    /* Dropdowns become tap-to-expand inline panels instead of hover flyouts */
    header nav .dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    header nav .dropdown-content {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid #ECE6E3;
        margin-left: 14px;
        padding: 4px 0;
        min-width: 0;
    }

    header nav .dropdown.open .dropdown-content {
        display: block;
    }

    #amac {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* --- Phase 2: Animations & Visual Polish --- */

/* Smooth fade-in animation */
.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover animation scale */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(36, 28, 27, 0.08);
}

/* Skeleton Loading Background */
.skeleton {
    position: relative;
    background: #ECE6E3;
    overflow: hidden;
}

/* Homepage: continuously scrolling photo strip (Anılarımızdan Kareler) */
.photo-strip-track {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 0 40px;
    animation: photo-strip-scroll 45s linear infinite;
}
.photo-strip-track:hover {
    animation-play-state: paused;
}
@keyframes photo-strip-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.photo-strip-card {
    position: relative;
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
    display: block;
}
.photo-strip-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.photo-strip-card:hover img {
    transform: scale(1.06);
}
.photo-strip-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(36,28,27,0) 0%, rgba(36,28,27,0.82) 100%);
}
.photo-strip-caption span {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Homepage: minimal Duyuru corner widget over the hero */
#duyuru-corner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.duyuru-corner-item {
    display: none;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    background: rgba(36, 28, 27, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    max-width: 280px;
    animation: fadeIn 0.4s ease;
}
.duyuru-corner-item.active {
    display: flex;
}
.duyuru-corner-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F2CBD3;
    display: flex;
    align-items: center;
    gap: 5px;
}
.duyuru-corner-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    line-height: 1.35;
}
.duyuru-corner-all {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    color: #F2CBD3;
    text-decoration: none;
    padding: 2px 4px;
}
.duyuru-corner-all:hover {
    color: #fff;
}

@media (max-width: 640px) {
    #duyuru-corner {
        max-width: 130px;
        top: 12px;
        right: 12px;
    }
    .duyuru-corner-item {
        max-width: 130px;
        padding: 7px 9px;
        gap: 2px;
    }
    .duyuru-corner-badge {
        font-size: 9px;
    }
    .duyuru-corner-title {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .duyuru-corner-all {
        font-size: 10px;
    }
    .photo-strip-card {
        width: 180px;
        height: 130px;
    }
}

/* Share Buttons widget styles */
.share-container {
    position: relative;
    display: inline-block;
}

.share-btn {
    padding: 10px 18px;
    border-radius: 7px;
    border: 1px solid #ECE6E3;
    background: #fff;
    color: #5A514F;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #FAF8F6;
    border-color: #8B2331;
    color: #8B2331;
}

.share-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #ECE6E3;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    padding: 6px;
    min-width: 170px;
    z-index: 100;
}

.share-dropdown.active {
    display: flex;
}

.share-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #241C1B;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none !important;
}

.share-item:hover {
    background: #FAF8F6;
    color: #8B2331 !important;
}

/* Clipboard Tooltip */
.tooltip-copy {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #241C1B;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip-copy.show {
    opacity: 1;
}

/* --- Altın Kaşık Luxury Detail Page Styles --- */
.gold-header-banner {
    background: radial-gradient(circle at center, #2C0F13 0%, #150002 100%);
    border-bottom: 2px solid #D4AF37;
    position: relative;
    overflow: hidden;
}

.gold-header-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(#D4AF37 1px, transparent 0);
    background-size: 24px 24px;
}

.gold-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #E5C158;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 0.03em;
}

.gold-box {
    border: 1px solid #E5C158;
    background: linear-gradient(135deg, rgba(229,193,88,0.06) 0%, rgba(229,193,88,0.01) 100%);
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.gold-box::after {
    content: "★";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #FAF8F6;
    color: #E5C158;
    padding: 0 10px;
    font-size: 18px;
}

