@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --prc-text-main: #ffffff;
    --prc-text-muted: #a1a1aa;
    --prc-border-color: #27272a;
    --prc-bg-light: #09090b; /* Pure, deep black */
    --prc-bg-alt: #18181b;   /* Slightly lighter black for contrast */
    --prc-accent: #facc15;   /* Modern, vibrant, professional yellow */
    --prc-accent-hover: #eab308;
    --prc-font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --prc-radius: 16px;
    --prc-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* Main Card Container */
.pro-recipe-card {
    font-family: var(--prc-font-family);
    color: var(--prc-text-main);
    background: var(--prc-bg-light);
    border: 1px solid var(--prc-border-color);
    border-radius: var(--prc-radius);
    padding: 40px;
    margin: 40px auto;
    box-shadow: var(--prc-shadow);
    max-width: 850px;
    box-sizing: border-box;
    line-height: 1.6;
}

.pro-recipe-card * {
    box-sizing: border-box;
}

/* Featured Image */
.pro-recipe-card .recipe-image-wrap {
    margin: -40px -40px 32px -40px;
    text-align: center;
    border-radius: var(--prc-radius) var(--prc-radius) 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.pro-recipe-card .recipe-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Recipe Title */
.pro-recipe-card .recipe-title {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 32px;
    text-align: center;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1px;
}
.pro-recipe-card .recipe-title span {
    color: var(--prc-accent); /* Make parts of title yellow if possible, but for now just solid white is cleaner, or solid yellow */
}

/* Meta Data Grid (Prep time, etc) */
.pro-recipe-card .recipe-meta-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: var(--prc-bg-alt);
    border-radius: 12px;
    padding: 24px 16px;
    margin-bottom: 40px;
    border: 1px solid var(--prc-border-color);
}

.pro-recipe-card .meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
}
.pro-recipe-card .meta-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background-color: var(--prc-border-color);
}

.pro-recipe-card .meta-label {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--prc-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.pro-recipe-card .meta-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--prc-accent); /* Vibrant yellow numbers */
}

/* Action Buttons (Print, Pin, Jump) */
.pro-recipe-card .recipe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 32px 0 48px 0;
}

.pro-recipe-card .recipe-actions .recipe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--prc-accent);
    color: #000000;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--prc-font-family);
}

.pro-recipe-card .recipe-actions .recipe-btn:hover {
    background-color: var(--prc-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.2);
}

/* Section Headings */
.pro-recipe-card .recipe-section {
    margin-bottom: 48px;
    background: var(--prc-bg-alt);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--prc-border-color);
}
.pro-recipe-card .recipe-section h2, 
.pro-recipe-card .recipe-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--prc-text-main);
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}
.pro-recipe-card .recipe-section h2::after, 
.pro-recipe-card .recipe-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--prc-accent);
    border-radius: 2px;
}

/* Ingredients (Square Checkboxes) */
.pro-recipe-card .ingredients-list-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-recipe-card .ingredients-list-ul li {
    padding: 16px 0 16px 40px;
    border-bottom: 1px solid var(--prc-border-color);
    position: relative;
    font-size: 1.1rem;
    color: var(--prc-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pro-recipe-card .ingredients-list-ul li:last-child {
    border-bottom: none;
}

.pro-recipe-card .ingredients-list-ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 20px;
    height: 20px;
    border: 2px solid #52525b; /* grey border */
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.pro-recipe-card .ingredients-list-ul li:hover::before {
    border-color: var(--prc-accent);
}

/* Checked State */
.pro-recipe-card .ingredients-list-ul li.checked {
    opacity: 0.5;
}
.pro-recipe-card .ingredients-list-ul li.checked::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 50%;
    width: calc(100% - 40px);
    height: 2px;
    background-color: var(--prc-text-muted);
    animation: strike 0.2s ease-out forwards;
    transform-origin: left;
}

@keyframes strike {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.pro-recipe-card .ingredients-list-ul li.checked::before {
    background-color: var(--prc-accent);
    border-color: var(--prc-accent);
    content: '✓';
    color: #000;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step by Step Instructions */
.pro-recipe-card .recipe-directions .directions-list {
    counter-reset: step-counter;
}

.pro-recipe-card .recipe-directions p {
    position: relative;
    padding-left: 56px;
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d4d4d8;
}

.pro-recipe-card .recipe-directions p::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background-color: var(--prc-accent);
    color: #000000;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Nutrition & Cost */
.pro-recipe-card .nutrition-content p,
.pro-recipe-card .cost-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--prc-border-color);
    display: flex;
    justify-content: space-between;
    color: #d4d4d8;
}
.pro-recipe-card .nutrition-content p:last-child,
.pro-recipe-card .cost-content p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .pro-recipe-card {
        padding: 24px;
        margin: 20px auto;
    }
    .pro-recipe-card .recipe-image-wrap {
        margin: -24px -24px 24px -24px;
    }
    .pro-recipe-card .recipe-title {
        font-size: 2.2rem;
    }
    .pro-recipe-card .recipe-meta-grid {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    .pro-recipe-card .meta-item:not(:last-child)::after {
        display: none;
    }
    .pro-recipe-card .recipe-actions {
        flex-direction: column;
        width: 100%;
    }
    .pro-recipe-card .recipe-actions .recipe-btn {
        width: 100%;
    }
    .pro-recipe-card .recipe-section {
        padding: 24px;
    }
}
