/* ═══════════════════════════════════════════════════
   YEMEK DETAY PAGE — CSS v2.0
   Minimal, professional, eye-catching detail page
   Extends yemek.css base variables & header styles
   ═══════════════════════════════════════════════════ */

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
    margin-left: 1rem;
}

.breadcrumb-item {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    transition: color var(--transition);
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--gray-800);
    font-weight: 600;
    pointer-events: none;
}

.breadcrumb-item i {
    font-size: 0.9rem;
}

.breadcrumb-sep {
    font-size: 0.625rem;
    color: var(--gray-300);
    flex-shrink: 0;
}

/* ===== Back Button ===== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    transition: all var(--transition);
}

.btn-back:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(246, 48, 73, 0.03);
}

.btn-back i {
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════ */
.detay-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ═══════════════════════════════════════════════════
   PRODUCT GRID — Image left, Info right
   ═══════════════════════════════════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* ===== Product Image ===== */
.product-image-wrapper {
    position: sticky;
    top: 5rem;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    z-index: 2;
}

.product-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3125rem 0.625rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-badges .badge-featured {
    background: rgba(246, 48, 73, 0.9);
    color: #fff;
}

.product-badges .badge-new {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.product-badges .badge-vegan {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.product-badges .badge-halal {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

.product-badges .badge-discount {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

/* ===== Product Info ===== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: opacity var(--transition);
    margin-bottom: 0.5rem;
}

.product-category:hover {
    opacity: 0.7;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* ===== Product Price ===== */
.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(246, 48, 73, 0.04) 0%, rgba(246, 48, 73, 0.01) 100%);
    border: 1px solid rgba(246, 48, 73, 0.1);
    border-radius: 12px;
}

.price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.price-original {
    font-size: 1.125rem;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 400;
}

/* ===== Product Meta Tags ===== */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-meta .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4375rem 0.75rem;
    background: #fff;
    border: 1.5px solid var(--gray-100);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
    transition: all var(--transition);
}

.product-meta .meta-chip:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-xs);
}

.product-meta .meta-chip i {
    color: var(--primary);
    font-size: 0.9375rem;
}

.product-meta .meta-chip--rating {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.04);
}

.product-meta .meta-chip--rating i {
    color: #f59e0b;
}

/* ═══════════════════════════════════════════════════
   RESTAURANT CARD — Clean, elevated
   ═══════════════════════════════════════════════════ */
.restaurant-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.restaurant-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 1rem;
}

.restaurant-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gray-100);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.restaurant-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.restaurant-logo-placeholder i {
    font-size: 1.25rem;
    color: var(--gray-400);
}

.restaurant-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.125rem;
}

.restaurant-slogan {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.info-row i {
    color: var(--gray-400);
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 0.9375rem;
}

.info-row a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.info-row a:hover {
    color: var(--primary);
}

/* ===== Restaurant Action Buttons ===== */
.restaurant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.restaurant-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5625rem 1rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: inherit;
}

.restaurant-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(246, 48, 73, 0.2);
}

.restaurant-actions .btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(246, 48, 73, 0.3);
    transform: translateY(-1px);
}

.restaurant-actions .btn-order {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.restaurant-actions .btn-order:hover {
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    transform: translateY(-1px);
}

.restaurant-actions .btn-outline {
    background: #fff;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
}

.restaurant-actions .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(246, 48, 73, 0.03);
}

/* ===== Map ===== */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--gray-100);
}

.map-wrapper iframe {
    width: 100%;
    height: 180px;
    border: none;
    display: block;
}

/* ═══════════════════════════════════════════════════
   SECTIONS (Reviews, Related)
   ═══════════════════════════════════════════════════ */
.detay-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.section-title i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════
   REVIEW STATS — Clean summary bar
   ═══════════════════════════════════════════════════ */
.review-stats {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stats-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.stats-average {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stats-stars {
    display: flex;
    gap: 0.125rem;
    color: #f59e0b;
    font-size: 0.875rem;
    margin: 0.5rem 0 0.375rem;
}

.stats-count {
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 500;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    justify-content: center;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    width: 16px;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    font-weight: 500;
}

.bar-label i {
    font-size: 0.6rem;
    color: #f59e0b;
}

.bar-track {
    flex: 1;
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-count {
    font-size: 0.6875rem;
    color: var(--gray-400);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   REVIEWS GRID — Form left + List right
   ═══════════════════════════════════════════════════ */
.reviews-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 1.5rem;
    align-items: start;
}

/* ===== Review Form ===== */
.review-form-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    position: sticky;
    top: 5rem;
}

.form-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    color: var(--gray-900);
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(246, 48, 73, 0.06);
}

.form-input::placeholder {
    color: var(--gray-400);
}

textarea.form-input {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* ===== Star Rating Input ===== */
.rating-input {
    display: flex;
    gap: 0.25rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 1.625rem;
    color: var(--gray-200);
    cursor: pointer;
    transition: all 0.15s ease;
}

.rating-input label:hover {
    transform: scale(1.15);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #f59e0b;
}

/* ===== Alerts ===== */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Reviews List ===== */
.reviews-list-wrapper {
    min-height: 200px;
}

.reviews-list-wrapper .form-title {
    margin-bottom: 0.875rem;
}

.reviews-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4375rem;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.375rem;
}

/* Custom scrollbar */
.reviews-list::-webkit-scrollbar { width: 4px; }
.reviews-list::-webkit-scrollbar-track { background: transparent; }
.reviews-list::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }
.reviews-list::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* ===== Review Card ===== */
.review-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    padding: 1rem 1.125rem;
    transition: border-color var(--transition);
}

.review-card:hover {
    border-color: var(--gray-200);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.review-date {
    font-size: 0.6875rem;
    color: var(--gray-400);
    margin-top: 0.125rem;
}

.review-rating {
    display: flex;
    gap: 0.1rem;
    color: #f59e0b;
    font-size: 0.75rem;
}

.review-text {
    color: var(--gray-600);
    font-size: 0.8125rem;
    line-height: 1.65;
    margin-bottom: 0.625rem;
}

/* ===== Vote Buttons ===== */
.review-votes {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    background: transparent;
    font-size: 0.75rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.vote-btn:hover {
    border-color: var(--gray-300);
    color: var(--gray-600);
}

.vote-like:hover,
.vote-like.active {
    border-color: #22c55e;
    color: #22c55e;
    background: #f0fdf4;
}

.vote-dislike:hover,
.vote-dislike.active {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.vote-count {
    font-weight: 600;
    min-width: 0.5rem;
    text-align: center;
}

/* ===== Owner Reply ===== */
.review-owner-reply {
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 0.875rem;
    margin-top: 0.375rem;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.reply-header strong { font-weight: 600; }
.reply-date { color: var(--gray-400); margin-left: auto; font-weight: 400; }
.reply-text { font-size: 0.8125rem; color: var(--gray-600); line-height: 1.55; margin: 0; }

/* Empty reviews */
.no-reviews {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--gray-400);
}

.no-reviews i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
    display: block;
}

.no-reviews p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   RELATED ITEMS — Card grid with hover animations
   ═══════════════════════════════════════════════════ */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.875rem;
}

.related-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.related-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image {
    transform: scale(1.04);
}

.related-content {
    padding: 0.75rem 0.875rem;
}

.related-name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-900);
    margin: 0 0 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.related-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.detay-footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8125rem;
}

.detay-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.detay-footer a:hover {
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════════ */
.product-image-wrapper {
    animation: fadeSlideUp 0.45s ease both;
}

.product-info {
    animation: fadeSlideUp 0.45s 0.08s ease both;
}

.detay-section {
    animation: fadeSlideUp 0.4s 0.15s ease both;
}

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

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

/* ≤1024px */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
}

/* ≤768px */
@media (max-width: 768px) {
    .breadcrumb {
        display: none;
    }

    .detay-main {
        padding: 1.25rem 1rem 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-image-wrapper {
        position: static;
        border-radius: 14px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .price-current {
        font-size: 1.625rem;
    }

    .product-price {
        padding: 0.875rem 1rem;
    }

    .review-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-summary {
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-form-card {
        position: static;
    }

    .reviews-list {
        max-height: none;
    }
}

/* ≤480px */
@media (max-width: 480px) {
    .btn-back span {
        display: none;
    }

    .btn-back {
        padding: 0.4375rem;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }

    .detay-main {
        padding: 1rem 0.875rem 1.5rem;
    }

    .product-image-wrapper {
        border-radius: 12px;
        margin: 0 -0.25rem;
    }

    .product-title {
        font-size: 1.3125rem;
    }

    .price-current {
        font-size: 1.375rem;
    }

    .product-price {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .product-meta .meta-chip {
        font-size: 0.75rem;
        padding: 0.3125rem 0.5rem;
    }

    .restaurant-card {
        padding: 1.125rem;
    }

    .restaurant-actions {
        flex-direction: column;
    }

    .restaurant-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
    }

    .review-form-card {
        padding: 1.125rem;
    }

    .review-card {
        padding: 0.875rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .related-content {
        padding: 0.625rem;
    }

    .related-name {
        font-size: 0.75rem;
    }

    .related-price {
        font-size: 0.8125rem;
    }
}
