/*
Theme Name: YMK Catering
Theme URI: https://ymkcatering.com
Author: Istanbul Studio
Author URI: https://istanbulstudio.com
Description: Türkiye'nin #1 Catering Firma Rehberi
Version: 10.0.0
License: GNU General Public License v2 or later
Text Domain: ymk-catering
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
    --krem: #F1EDE3;
    --turuncu: #DD5903;
    --petrol: #1A2D2D;
    --gold: #FFC108;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --green-500: #22C55E;
    --blue-500: #1D9BF0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--petrol);
}

/* ============================================
   FORM ELEMENTS
============================================ */
.ymk-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--white);
}
.ymk-input:focus {
    outline: none;
    border-color: var(--turuncu);
    box-shadow: 0 0 0 3px rgba(221, 89, 3, 0.1);
}
.ymk-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}
.ymk-select:focus {
    outline: none;
    border-color: var(--turuncu);
}

/* ============================================
   BADGES
============================================ */
.ymk-badge-premium {
    background: linear-gradient(135deg, #FFC108 0%, #FFD54F 50%, #FFC108 100%);
    color: var(--petrol);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(255, 193, 8, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ymk-badge-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--blue-500);
    border-radius: 50%;
    margin-left: 4px;
    flex-shrink: 0;
}
.ymk-badge-verified svg {
    width: 10px;
    height: 10px;
    color: white;
    stroke-width: 3;
}
.ymk-badge-online {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #ECFDF5;
    padding: 4px 8px;
    border-radius: 20px;
}
.ymk-badge-online::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Status Badges */
.status-new { background: #ECFDF5; color: #059669; }
.status-progress { background: #FEF3C7; color: #D97706; }
.status-done { background: #F3F4F6; color: #6B7280; }

/* ============================================
   CARDS
============================================ */
.ymk-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}
.ymk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.ymk-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}
.ymk-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ymk-card:hover .ymk-card-image img {
    transform: scale(1.05);
}

/* City Cards */
.city-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.city-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
}
.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.city-card:hover img {
    transform: scale(1.08);
}
.city-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.city-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    color: white;
}
.city-card__name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
}
.city-card__count {
    font-size: 14px;
    opacity: 0.85;
}

/* ============================================
   SEARCH BOX
============================================ */
.search-shadow {
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

/* ============================================
   SEO CONTENT
============================================ */
.ymk-seo-content {
    max-height: 400px;
    overflow-y: auto;
}
.ymk-seo-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--petrol);
}
.ymk-seo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
    color: var(--petrol);
}
.ymk-seo-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.ymk-seo-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.ymk-seo-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   FAQ ACCORDION
============================================ */
.ymk-faq-item {
    border-bottom: 1px solid var(--gray-200);
}
.ymk-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--petrol);
}
.ymk-faq-question svg {
    transition: transform 0.3s;
    flex-shrink: 0;
}
.ymk-faq-item.active .ymk-faq-question svg {
    transform: rotate(180deg);
}
.ymk-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.ymk-faq-item.active .ymk-faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}
.ymk-faq-answer p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   REVIEWS SLIDER
============================================ */
.ymk-reviews-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}
.ymk-reviews-slider::-webkit-scrollbar { height: 6px; }
.ymk-reviews-slider::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.ymk-reviews-slider::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.ymk-review-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

/* ============================================
   WHATSAPP WIDGET
============================================ */
.ymk-whatsapp-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 12px 20px 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s;
}
.ymk-whatsapp-widget:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
.ymk-whatsapp-widget__icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ymk-whatsapp-widget__icon svg {
    width: 24px;
    height: 24px;
}
.ymk-whatsapp-widget__title {
    font-weight: 700;
    font-size: 14px;
    display: block;
}
.ymk-whatsapp-widget__subtitle {
    font-size: 12px;
    opacity: 0.9;
    display: block;
}

/* ============================================
   SIDE TAB (Right Fixed)
============================================ */
.ymk-side-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: none;
}
@media (min-width: 768px) {
    .ymk-side-tab {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
}
.ymk-side-tab a,
.ymk-side-tab button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: padding-right 0.3s;
}
.ymk-side-tab a:hover,
.ymk-side-tab button:hover {
    padding-right: 24px;
}
.ymk-side-tab__whatsapp {
    background: #25D366;
    border-radius: 8px 0 0 0;
}
.ymk-side-tab__phone {
    background: var(--turuncu);
}
.ymk-side-tab__form {
    background: var(--petrol);
    border-radius: 0 0 0 8px;
}

/* ============================================
   SIDE PANEL (Slide-in Form)
============================================ */
.ymk-side-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.ymk-side-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}
.ymk-side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.ymk-side-panel.active {
    right: 0;
}

/* ============================================
   CUSTOM SCROLLBAR
============================================ */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
