/* Gemini Recipe Article Generator — Frontend Recipe Card Styles (v2.0.0) */

.gag-jump-bar {
    margin: 0 0 24px;
    display: flex;
    justify-content: flex-start;
}

.gag-jump-to-recipe {
    display: inline-block;
    padding: 10px 20px;
    background: #1f2937;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.gag-jump-to-recipe:hover {
    background: #111827;
    transform: translateY(-1px);
}

/* Main Recipe Card Container */
.gag-recipe-card {
    margin: 36px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.gag-rc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.gag-rc-header-text {
    flex: 1;
}

.gag-rc-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #b45309;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.gag-rc-title {
    margin: 0 0 10px !important;
    font-size: 26px !important;
    line-height: 1.25;
    color: #111827;
}

.gag-rc-description {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.gag-rc-actions {
    display: flex;
    gap: 10px;
}

.gag-print-recipe-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #1f2937 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gag-print-recipe-btn:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff !important;
}

.gag-rc-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.gag-rc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Timing & Meta Grid */
.gag-rc-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.gag-rc-meta-item {
    padding: 16px 14px;
    text-align: center;
    border-right: 1px solid #f3f4f6;
}

.gag-rc-meta-item:last-child {
    border-right: none;
}

.gag-rc-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    margin-bottom: 4px;
}

.gag-rc-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

/* Sections */
.gag-rc-section {
    padding: 24px 28px;
    border-bottom: 1px solid #f3f4f6;
}

.gag-rc-section:last-child {
    border-bottom: none;
}

.gag-rc-section-title {
    margin: 0 0 14px !important;
    font-size: 19px !important;
    font-weight: 700;
    color: #111827;
}

.gag-rc-section-title small {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

.gag-rc-group-title {
    margin: 14px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.gag-rc-equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gag-rc-equipment-list li {
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
}

.gag-rc-ingredients-list {
    margin: 0 0 12px;
    padding-left: 20px;
    line-height: 1.8;
    font-size: 15px;
}

.gag-rc-ingredients-list li {
    margin-bottom: 4px;
}

.gag-rc-instructions-list {
    margin: 0;
    padding-left: 22px;
    line-height: 1.75;
    font-size: 15px;
}

.gag-rc-instructions-list li {
    margin-bottom: 12px;
}

.gag-rc-notes {
    background: #fffbeb;
}

.gag-rc-notes ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
    font-size: 14.5px;
}

/* Nutrition Grid */
.gag-rc-nutrition {
    background: #f9fafb;
}

.gag-rc-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.gag-rc-nut-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}

.gag-rc-nut-item span {
    display: block;
    font-size: 11.5px;
    color: #6b7280;
    margin-bottom: 3px;
}

.gag-rc-nut-item strong {
    font-size: 14px;
    color: #111827;
}

/* Responsive */
@media (max-width: 640px) {
    .gag-rc-header {
        flex-direction: column-reverse;
        padding: 20px;
    }
    .gag-rc-thumb {
        width: 100%;
        height: 200px;
    }
    .gag-rc-section {
        padding: 20px;
    }
}

/* Print-friendly Recipe Card */
@media print {
    body * {
        visibility: hidden;
    }
    #gag-recipe-card,
    #gag-recipe-card * {
        visibility: visible;
    }
    #gag-recipe-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    .gag-print-recipe-btn {
        display: none !important;
    }
}
