/* Styles for templates/recept.html (moved out of the template) */
@media screen and (max-width: 768px) {
  
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
  }
  
  .content {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

}

/* Small Mobile (480px and below) */
@media screen and (max-width: 480px) {
  
  .container {
    padding: 0.75rem !important;
  }

}

/* Extra centering for very small screens */
@media screen and (max-width: 360px) {
  
  .container {
    padding: 0.5rem !important;
  }

}

/* Landscape mobile orientation */

    .recipes-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    /* Hero section styling */
    .recipes-hero {
        position: relative;
        height: 350px;
        background-size: cover;
        background-position: center;
        border-radius: 12px;
        margin-bottom: 40px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

    .recipes-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: linear-gradient(135deg, 
                                         rgba(120, 69, 39, 0.7), 
                                         rgba(224, 122, 95, 0.6));
        z-index: 1;
    }

    .recipes-header-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        padding: 2rem;
        max-width: 800px;
    }

    .recipes-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        letter-spacing: 1px;
    }

    .recipes-subtitle {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .rustic-divider {
        position: relative;
        height: 30px;
        margin: 20px auto 0;
        text-align: center;
    }

    .rustic-divider::before, 
    .rustic-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 100px;
        height: 2px;
        background: rgba(255, 255, 255, 0.6);
    }

    .rustic-divider::before {
        left: calc(50% - 120px);
    }

    .rustic-divider::after {
        right: calc(50% - 120px);
    }

    .rustic-divider i {
        display: inline-block;
        font-size: 1.5rem;
        background-color: rgba(255, 255, 255, 0.2);
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 50%;
        text-align: center;
    }

    .category-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .category-button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
        background-color: white;
        color: #665e53;
        text-decoration: none;
        border-radius: 30px;
        font-size: 0.9rem;
        transition: all 0.3s;
        border: 1px solid #e0d9cf;
    }

    .category-button i {
        color: var(--accent-warm);
    }

    .category-button:hover {
        background-color: var(--accent-warm);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .category-button:hover i {
        color: white;
    }

    /* Featured Recipes Section */
    .featured-recipes {
        margin-bottom: 50px;
    }

    .featured-recipes > h2 {   /* "Senaste recepten", not the card titles */
        text-align: center;
        margin-bottom: 30px;
        color: var(--accent-warm);
        font-size: 2rem;
        position: relative;
    }

    .featured-recipes > h2::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--accent-warm), transparent);
    }

    /* Pagination styling */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .page-link {
        text-decoration: none;
        padding: 8px 15px;
        border: 1px solid #e0d9cf;
        border-radius: 30px;
        color: #665e53;
        background-color: white;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .page-link:hover {
        background-color: var(--accent-warm);
        color: white;
        border-color: var(--accent-warm);
        transform: translateY(-2px);
    }

    .page-indicator {
        display: flex;
        align-items: center;
        background-color: #f9f7f5;
        padding: 8px 15px;
        border-radius: 30px;
        font-weight: 600;
        color: #665e53;
    }

    .current-page {
        color: var(--accent-warm);
        font-size: 1.2rem;
        margin: 0 5px;
    }

    .total-pages {
        color: #665e53;
        font-size: 1.2rem;
        margin: 0 5px;
    }

    .page-separator {
        margin: 0 5px;
        color: #b3a99a;
    }

    /* No posts styling */
    .no-posts-container {
        text-align: center;
        padding: 60px 20px;
        background-color: #f9f7f5;
        border-radius: 10px;
        margin: 30px 0;
    }

    .no-posts-content {
        max-width: 500px;
        margin: 0 auto;
    }

    .no-posts-content i {
        font-size: 3rem;
        color: #ccc;
        margin-bottom: 20px;
    }

    .no-posts {
        font-size: 1.5rem;
        color: #665e53;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .no-posts-subtext {
        color: #888;
        margin-bottom: 30px;
    }

    /* Newsletter section */
    .newsletter-section {
        background-color: #f9f7f5;
        padding: 40px;
        border-radius: 10px;
        margin-top: 50px;
        position: relative;
        overflow: hidden;
        border: 1px solid #e0d9cf;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }

    .newsletter-section::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40%;
        background-size: cover;
        background-position: center;
        opacity: 0.1;
        border-radius: 0 10px 10px 0;
}

    .newsletter-section h2 {
        color: var(--accent-warm);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .newsletter-section p {
        color: #665e53;
        margin-bottom: 25px;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .newsletter-form {
        display: flex;
        gap: 10px;
    }

    .newsletter-form input {
        flex-grow: 1;
        padding: 12px 20px;
        border: 1px solid #e0d9cf;
        border-radius: 30px;
        font-size: 1rem;
        outline: none;
        transition: all 0.3s;
    }

    .newsletter-form input:focus {
        border-color: var(--accent-warm);
        box-shadow: 0 0 0 2px rgba(184, 92, 60, 0.2);
    }

    .newsletter-form button {
        background-color: var(--accent-warm);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 30px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .newsletter-form button:hover {
        background-color: var(--highlight);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .newsletter-form button i {
        transition: transform 0.3s;
    }

    .newsletter-form button:hover i {
        transform: translateX(3px);
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

/* Page title on the wood photo: light cream with a dark shadow so it stands
   out (the global heading colour made it brown on brown) */
.recipes-hero .recipes-title {
    color: #fff8ee;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.35);
}

.recipes-hero .recipes-title::after {
    display: none;   /* the box already has its own divider below the title */
}
