/* ViralBites Recipe Page Styles */

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: white;
    font-size: 16px;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 56px;
    }
}

.body-no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #ea580c;
    color: white;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    background-color: #ea580c;
    color: white;
    padding: 8px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -0.025em;
    text-decoration: none;
    color: white;
}

.menu-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
    min-height: 44px;
    min-width: 44px;
}

.menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-header {
    padding: 20px;
    position: relative;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    min-height: 44px;
    min-width: 44px;
}

.close-menu:hover {
    background-color: #f3f4f6;
}

.menu-links {
    padding: 20px;
    text-align: center;
}

.menu-links a {
    display: block;
    padding: 15px;
    font-size: 24px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s;
    min-height: 44px;
}

.menu-links a:hover {
    background-color: #f3f4f6;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
    padding: 5px 0 30px 0;
}

/* ==========================================================================
   RECIPE CONTENT
   ========================================================================== */

.recipe-image-container {
    position: relative;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.recipe-image {
    width: 100%;
    height: auto;
    display: block;
}

.trending-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #ea580c;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .recipe-title {
        font-size: 34px;
    }
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
}

.rating-value {
    font-weight: 600;
    color: #333;
}

.review-count {
    color: #666;
}

.recipe-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #f3f4f6;
    color: #333;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    min-height: 44px;
}

.action-button:hover {
    background-color: #e5e7eb;
}

.action-button.saved {
    background-color: #ea580c;
    color: white;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

section {
    margin-bottom: 32px;
}

/* ==========================================================================
   INGREDIENTS
   ========================================================================== */

.ingredients-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ingredient-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ingredient-amount {
    font-weight: 600;
    color: #ea580c;
    min-width: 80px;
    margin-right: 16px;
}

/* ==========================================================================
   INSTRUCTIONS
   ========================================================================== */

.instructions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.step-number {
    background-color: #ea580c;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   TIPS SECTION
   ========================================================================== */

.tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.tip-icon {
    background-color: #f0f9ff;
    color: #0369a1;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   NUTRITION TABLE
   ========================================================================== */

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.nutrition-table th,
.nutrition-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.nutrition-table th {
    font-weight: 600;
    color: #333;
}

.nutrition-table td {
    color: #666;
}

.nutrition-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: #ea580c;
    color: white;
    padding: 48px 0;
    margin-top: 48px;
}

.footer-content {
    text-align: center;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 16px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* ==========================================================================
   STICKY NEXT RECIPE
   ========================================================================== */

.sticky-next-recipe {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    height: 56px;
}

.sticky-next-recipe a {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .sticky-next-recipe {
        display: flex;
    }
}

@media (min-width: 768px) {
    .sticky-next-recipe {
        display: none;
    }
}