/**
 * Product Style - Recipe Detail Page
 * Modern tarif detay sayfası stilleri
 */

/* === Ana Konteyner === */
.amigurumi-recipe-detail {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* === Üst Bölüm: Görsel + İçerik === */
.recipe-detail-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* === Sol: Ana Görsel === */
.recipe-main-image {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
    background: #f9f9f9;
}

.main-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.image-zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.image-zoom-btn:hover {
    background: white;
    transform: scale(1.05);
}

.image-zoom-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.no-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.no-image-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

/* Rating Badge */
.recipe-rating-badge {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.recipe-rating-badge .stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.recipe-rating-badge .star {
    font-size: 20px;
}

.recipe-rating-badge .star.filled {
    color: #ffd700;
}

.recipe-rating-badge .star.empty {
    color: #ddd;
}

.recipe-rating-badge .rating-score {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* === Sağ: Ana İçerik === */
.recipe-main-content {
    padding: 20px 0;
}

.recipe-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #222;
    line-height: 1.3;
}

/* Meta Bilgiler */
.recipe-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-icon {
    font-size: 20px;
}

.meta-label {
    color: #666;
    font-weight: 600;
}

.meta-value {
    color: #333;
    font-weight: 700;
}

.lang-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.lang-badge.lang-tr {
    background: #e74c3c;
    color: white;
}

.lang-badge.lang-en {
    background: #3498db;
    color: white;
}

/* Açıklama */
.recipe-description {
    margin-bottom: 30px;
}

.recipe-description h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.recipe-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.no-description {
    font-style: italic;
    color: #999;
}

/* Paylaşım */
.recipe-share-section {
    margin-top: 30px;
}

.recipe-share-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.share-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.pinterest { background: #bd081c; }

/* === Tarif Adımları Slider === */
.recipe-steps-section {
    margin-top: 60px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 20px;
}

.recipe-steps-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.steps-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.steps-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.step-slide:hover .step-image {
    transform: scale(1.02);
}

.step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c06c84 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* Slider Kontrolleri */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.slider-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 20px;
}

.slider-control.next {
    right: 20px;
}

.slider-control .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #333;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === Lightbox Modal === */
.recipe-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: white;
    transform: rotate(90deg) scale(1.1);
}

.lightbox-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #333;
}

.lightbox-image-wrapper {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

#lightboxImage {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* === Responsive === */
@media (max-width: 968px) {
    .recipe-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .recipe-main-image {
        position: relative;
        top: 0;
    }

    .recipe-title {
        font-size: 26px;
    }

    .slider-control {
        width: 40px;
        height: 40px;
    }

    .slider-control.prev {
        left: 10px;
    }

    .slider-control.next {
        right: 10px;
    }

    .step-number {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 640px) {
    .amigurumi-recipe-detail {
        margin: 20px auto;
        padding: 0 15px;
    }

    .recipe-steps-section {
        padding: 20px;
    }

    .recipe-title {
        font-size: 22px;
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    .slider-dots .dot.active {
        width: 24px;
    }
}

/* === İlgili Tarifler (single-recipe-seo.php için) === */
.related-recipes {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-recipes h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

/* İlgili tariflerdeki kartların grid düzeni */
.related-recipes .amigurumi-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* İlgili tariflerdeki kartların görselleri */
.related-recipes .amigurumi-recipe-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
