/**
 * Recipe Cards Developer - Single Recipe Styles
 * LTR Only
 */

/* Variables */
:root {
    --rcd-primary: #1a1a1a;
    --rcd-secondary: #6b7280;
    --rcd-accent: #10B981;
    --rcd-background: #f9fafb;
    --rcd-white: #ffffff;
    --rcd-border: #e5e7eb;
    --rcd-star-filled: #fbbf24;
    --rcd-star-empty: #d1d5db;
    --rcd-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --rcd-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --rcd-radius: 12px;
    --rcd-radius-sm: 6px;
    --rcd-transition: 0.3s ease;
    --rcd-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Single Wrapper */
.rcd-single-wrapper {
    font-family: var(--rcd-font-family);
    background: var(--rcd-white);
    color: var(--rcd-primary);
    line-height: 1.6;
}

/* Hero Section */
.rcd-single-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.rcd-single-hero-image {
    width: 100%;
    height: 100%;
}

.rcd-single-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rcd-single-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
    pointer-events: none;
}

/* Container */
.rcd-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Section */
.rcd-single-header {
    padding: 48px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--rcd-border);
}

/* Breadcrumb */
.rcd-single-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--rcd-secondary);
}

.rcd-single-breadcrumb a {
    color: var(--rcd-secondary);
    text-decoration: none;
    transition: color var(--rcd-transition);
}

.rcd-single-breadcrumb a:hover {
    color: var(--rcd-primary);
}

.rcd-breadcrumb-sep {
    color: var(--rcd-border);
}

/* Meta Tags */
.rcd-single-meta-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rcd-single-brand,
.rcd-single-tag {
    text-decoration: none;
    transition: opacity var(--rcd-transition);
}

.rcd-single-brand:hover,
.rcd-single-tag:hover {
    opacity: 0.7;
}

.rcd-single-sep {
    color: var(--rcd-secondary);
}

/* Title */
.rcd-single-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--rcd-primary);
}

/* Excerpt */
.rcd-single-excerpt {
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--rcd-secondary);
}

/* Info Bar */
.rcd-single-info-bar {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    background: var(--rcd-background);
    border-radius: var(--rcd-radius);
    overflow: hidden;
}

.rcd-single-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 32px;
    border-right: 1px solid var(--rcd-border);
}

.rcd-single-info-item:last-child {
    border-right: none;
}

.rcd-info-icon {
    color: var(--rcd-accent);
}

.rcd-info-icon svg {
    display: block;
}

.rcd-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rcd-secondary);
}

.rcd-info-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rcd-primary);
}

.rcd-rating-number {
    font-size: 13px;
    font-weight: 400;
    color: var(--rcd-secondary);
}

/* Single Stars */
.rcd-single-stars {
    display: flex;
    gap: 2px;
}

.rcd-single-stars .rcd-star {
    font-size: 16px;
    line-height: 1;
}

.rcd-star-full {
    color: var(--rcd-star-filled);
}

.rcd-star-half {
    color: var(--rcd-star-filled);
}

.rcd-star-empty {
    color: var(--rcd-star-empty);
}

/* Content Section */
.rcd-single-content {
    padding: 48px 0;
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.rcd-single-content h2 {
    margin: 40px 0 20px;
    font-size: 28px;
    font-weight: 700;
    color: var(--rcd-primary);
}

.rcd-single-content h3 {
    margin: 32px 0 16px;
    font-size: 22px;
    font-weight: 600;
    color: var(--rcd-primary);
}

.rcd-single-content p {
    margin: 0 0 24px;
}

.rcd-single-content ul,
.rcd-single-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.rcd-single-content li {
    margin-bottom: 12px;
}

.rcd-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--rcd-radius);
    margin: 24px 0;
}

.rcd-single-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--rcd-background);
    border-left: 4px solid var(--rcd-accent);
    border-radius: 0 var(--rcd-radius) var(--rcd-radius) 0;
    font-style: italic;
    color: var(--rcd-secondary);
}

/* Categories */
.rcd-single-categories {
    padding: 24px 0;
    border-top: 1px solid var(--rcd-border);
    font-size: 14px;
    color: var(--rcd-secondary);
}

.rcd-categories-label {
    font-weight: 600;
    margin-right: 8px;
}

.rcd-category-link {
    color: var(--rcd-primary);
    text-decoration: none;
    transition: color var(--rcd-transition);
}

.rcd-category-link:hover {
    color: var(--rcd-accent);
}

/* Share Section */
.rcd-single-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--rcd-border);
}

.rcd-share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--rcd-secondary);
}

.rcd-share-buttons {
    display: flex;
    gap: 8px;
}

.rcd-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rcd-background);
    color: var(--rcd-secondary);
    text-decoration: none;
    transition: all var(--rcd-transition);
}

.rcd-share-btn:hover {
    transform: translateY(-2px);
}

.rcd-share-facebook:hover {
    background: #1877f2;
    color: white;
}

.rcd-share-twitter:hover {
    background: #000000;
    color: white;
}

.rcd-share-pinterest:hover {
    background: #e60023;
    color: white;
}

.rcd-share-email:hover {
    background: var(--rcd-primary);
    color: white;
}

/* Related Section */
.rcd-related-section {
    padding: 64px 0;
    background: var(--rcd-background);
}

.rcd-related-title {
    margin: 0 0 32px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--rcd-primary);
}

.rcd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rcd-related-card {
    display: block;
    background: var(--rcd-white);
    border-radius: var(--rcd-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--rcd-shadow);
    transition: transform var(--rcd-transition), box-shadow var(--rcd-transition);
}

.rcd-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rcd-shadow-lg);
}

.rcd-related-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background: var(--rcd-border);
}

.rcd-related-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rcd-related-card:hover .rcd-related-image img {
    transform: scale(1.05);
}

.rcd-related-image .rcd-time-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--rcd-primary);
    background: var(--rcd-white);
    border-radius: var(--rcd-radius-sm);
}

.rcd-related-content {
    padding: 16px;
}

.rcd-related-brand {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rcd-related-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rcd-primary);
}

.rcd-placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

/* Navigation */
.rcd-single-nav {
    padding: 48px 0;
    border-top: 1px solid var(--rcd-border);
}

.rcd-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.rcd-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    max-width: 45%;
    background: var(--rcd-background);
    border-radius: var(--rcd-radius);
    text-decoration: none;
    transition: all var(--rcd-transition);
}

.rcd-nav-link:hover {
    background: var(--rcd-border);
}

.rcd-nav-prev {
    margin-right: auto;
}

.rcd-nav-next {
    margin-left: auto;
    text-align: right;
}

.rcd-nav-arrow {
    font-size: 24px;
    color: var(--rcd-secondary);
    transition: transform var(--rcd-transition);
}

.rcd-nav-prev:hover .rcd-nav-arrow {
    transform: translateX(-4px);
}

.rcd-nav-next:hover .rcd-nav-arrow {
    transform: translateX(4px);
}

.rcd-nav-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rcd-nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rcd-secondary);
}

.rcd-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rcd-primary);
    line-height: 1.4;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .rcd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rcd-single-hero {
        height: 50vh;
        min-height: 300px;
    }

    .rcd-single-container {
        padding: 0 20px;
    }

    .rcd-single-header {
        padding: 36px 0 32px;
    }

    .rcd-single-title {
        font-size: 32px;
    }

    .rcd-single-excerpt {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .rcd-single-info-bar {
        flex-direction: column;
    }

    .rcd-single-info-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 16px 20px;
        border-right: none;
        border-bottom: 1px solid var(--rcd-border);
    }

    .rcd-single-info-item:last-child {
        border-bottom: none;
    }

    .rcd-single-content {
        padding: 32px 0;
        font-size: 16px;
    }

    .rcd-single-content h2 {
        font-size: 24px;
    }

    .rcd-single-content h3 {
        font-size: 20px;
    }

    .rcd-related-section {
        padding: 48px 0;
    }

    .rcd-related-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .rcd-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rcd-related-card {
        display: flex;
        flex-direction: row;
    }

    .rcd-related-image {
        width: 120px;
        min-width: 120px;
        padding-top: 0;
        height: 100px;
    }

    .rcd-related-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 12px 16px;
    }

    .rcd-related-card-title {
        font-size: 15px;
    }

    .rcd-nav-links {
        flex-direction: column;
        gap: 16px;
    }

    .rcd-nav-link {
        max-width: 100%;
    }

    .rcd-nav-next {
        flex-direction: row-reverse;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .rcd-single-hero {
        height: 40vh;
        min-height: 250px;
    }

    .rcd-single-header {
        padding: 28px 0 24px;
    }

    .rcd-single-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .rcd-single-meta-tags {
        font-size: 11px;
    }

    .rcd-single-title {
        font-size: 26px;
    }

    .rcd-single-excerpt {
        font-size: 15px;
    }

    .rcd-single-info-item {
        padding: 14px 16px;
    }

    .rcd-info-label {
        font-size: 10px;
    }

    .rcd-info-value {
        font-size: 14px;
    }

    .rcd-single-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .rcd-single-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rcd-single-nav {
        padding: 32px 0;
    }

    .rcd-nav-link {
        padding: 16px;
    }

    .rcd-nav-title {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .rcd-single-hero {
        display: none;
    }

    .rcd-single-share,
    .rcd-related-section,
    .rcd-single-nav {
        display: none;
    }

    .rcd-single-container {
        max-width: 100%;
    }

    .rcd-single-content {
        font-size: 12pt;
    }
}
