/*
Theme Name: Recipia
Theme URI: https://example.com/recipia
Author: Recipia Team
Author URI: https://example.com/
Description: A highly customized, responsive WordPress theme optimized for food and recipe blogs. Features dynamic menus, widget areas, customizer options, and beautiful recipe card layouts.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recipia
*/

.site-branding a.brand {
    display: inline-block;
}

/* ===== Subscribe Popup Modal ===== */
.subscribe-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.subscribe-popup-overlay.active {
    display: flex !important;
}

.subscribe-popup-overlay .subscribe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.subscribe-popup-inner {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    border-radius: 0px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    border-top: 8px solid #32373c;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
}

.subscribe-popup-inner p,
.subscribe-form-group label,
.subscribe-form-group input,
.subscribe-submit-btn {
    font-family: 'Lato', sans-serif !important;
}

.subscribe-popup-flex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.subscribe-popup-image-wrap {
    flex: 1 1 42%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.subscribe-popup-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.subscribe-popup-content-wrap {
    flex: 1 1 58%;
    padding: 45px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive styling */
@media (max-width: 768px) {
    .subscribe-popup-inner {
        max-width: 460px;
    }
    .subscribe-popup-flex {
        flex-direction: column;
    }
    .subscribe-popup-image-wrap {
        height: 200px;
        flex: none;
    }
    .subscribe-popup-content-wrap {
        padding: 30px 24px;
        flex: none;
    }
}

.subscribe-popup-overlay.active .subscribe-popup-inner {
    transform: scale(1);
    opacity: 1;
}

.subscribe-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-popup-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.subscribe-popup-header {
    margin-bottom: 24px;
}

.subscribe-popup-icon {
    width: 68px;
    height: 68px;
    background: #eaf6ed;
    color: #30843c;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(48, 132, 60, 0.1);
}

.subscribe-popup-inner h3 {
    font-size: 30px;
    font-weight: 400;
    color: #2b2b2b;
    margin: 0 0 10px 0;
    font-family: 'Pacifico', cursive;
    text-transform: none !important;
}

.subscribe-popup-inner p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.subscribe-form-group {
    text-align: left;
    margin-bottom: 18px;
}

.subscribe-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.subscribe-form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 0px;
    outline: none;
    background: #f8fafc;
    transition: all 0.25s ease;
    color: #0f172a;
    box-sizing: border-box;
}

.subscribe-form-group input:focus {
    border-color: #32373c;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(50, 55, 60, 0.1);
}

.subscribe-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #32373c;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 6px -1px rgba(50, 55, 60, 0.2), 0 2px 4px -2px rgba(50, 55, 60, 0.2);
}

.subscribe-submit-btn:hover {
    background: #1f2225;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(50, 55, 60, 0.3), 0 4px 6px -4px rgba(50, 55, 60, 0.3);
}

.subscribe-submit-btn:active {
    transform: translateY(0);
}

.subscribe-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Success Message Styles */
.subscribe-success-msg {
    animation: fadeIn 0.4s ease;
}

.subscribe-success-icon {
    width: 72px;
    height: 72px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.subscribe-success-msg h3 {
    color: #15803d;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body.showing-subscribe-popup {
    overflow: hidden;
}

/* ===== Homepage Newsletter Section ===== */
.homepage-newsletter-container {
    padding: 18px 40px !important;
    margin: 40px auto !important;
    border-radius: 4px;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.homepage-newsletter-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.homepage-newsletter-image-col {
    flex: 0 0 240px;
    text-align: center;
}

.homepage-newsletter-image-col img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.homepage-newsletter-image-col img:hover {
    transform: rotate(0deg) scale(1.02);
}

.homepage-newsletter-content-col {
    flex: 1;
    text-align: left;
}

.homepage-newsletter-container.no-image .homepage-newsletter-content-col {
    text-align: center !important;
}

.homepage-newsletter-subtitle {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 19px;
    color: #2b2b2b;
    display: block;
    margin-bottom: 12px;
    text-transform: lowercase;
}

.homepage-newsletter-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0 0 12px 0;
    font-family: 'Lato', sans-serif;
    text-transform: none !important;
}

.homepage-newsletter-description {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.5;
    margin: 0 0 24px 0;
    font-family: 'Lato', sans-serif;
}

.homepage-newsletter-btn {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 16px 36px;
    border-radius: 0px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border: 1px solid #000000;
}

.homepage-newsletter-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.homepage-newsletter-btn:active {
    transform: translateY(0);
}

/* Responsive Newsletter styles */
@media (max-width: 768px) {
    .homepage-newsletter-container {
        padding: 40px 20px;
    }
    .homepage-newsletter-row {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .homepage-newsletter-image-col {
        flex: none;
        max-width: 180px;
        margin: 0 auto;
    }
    .homepage-newsletter-content-col {
        text-align: center;
    }
    .homepage-newsletter-title {
        font-size: 26px;
    }
}

/* ===== Sticky Header Menu ===== */
.has-sticky-header #wrapper {
    overflow: visible !important;
}

.has-sticky-header .site-header {
    position: sticky !important;
    top: 0;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Offset for WordPress Admin Bar if logged in */
.has-sticky-header.admin-bar .site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .has-sticky-header.admin-bar .site-header {
        top: 46px !important;
    }
}

/* ===== embedded Content Newsletter Block Styles ===== */
.entry-content .homepage-newsletter-container {
    padding: 18px 40px !important;
    margin: 40px auto !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

.entry-content .homepage-newsletter-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 50px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.entry-content .homepage-newsletter-image-col {
    flex: 0 0 240px !important;
    text-align: center !important;
}

.entry-content .homepage-newsletter-image-col img {
    max-width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15)) !important;
    transform: rotate(3deg) !important;
    transition: transform 0.3s ease !important;
}

.entry-content .homepage-newsletter-image-col img:hover {
    transform: rotate(0deg) scale(1.02) !important;
}

.entry-content .homepage-newsletter-content-col {
    flex: 1 !important;
    text-align: left !important;
}

.entry-content .homepage-newsletter-container.no-image .homepage-newsletter-content-col {
    text-align: center !important;
}

.entry-content .homepage-newsletter-subtitle {
    font-family: Georgia, serif !important;
    font-style: italic !important;
    font-size: 19px !important;
    color: #2b2b2b !important;
    display: block !important;
    margin-bottom: 12px !important;
    text-transform: lowercase !important;
}

.entry-content .homepage-newsletter-title {
    font-size: 34px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.25 !important;
    margin: 0 0 12px 0 !important;
    font-family: 'Lato', sans-serif !important;
    text-transform: none !important;
}

.entry-content .homepage-newsletter-description {
    font-size: 16px !important;
    color: #4a4a4a !important;
    line-height: 1.5 !important;
    margin: 0 0 24px 0 !important;
    font-family: 'Lato', sans-serif !important;
}

.entry-content .homepage-newsletter-btn {
    display: inline-block !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    padding: 16px 36px !important;
    border-radius: 0px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease !important;
    border: 1px solid #000000 !important;
}

.entry-content .homepage-newsletter-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    .entry-content .homepage-newsletter-container {
        padding: 40px 20px !important;
    }
    .entry-content .homepage-newsletter-row {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }
    .entry-content .homepage-newsletter-image-col {
        flex: none !important;
        max-width: 180px !important;
        margin: 0 auto !important;
    }
    .entry-content .homepage-newsletter-content-col {
        text-align: center !important;
    }
    .entry-content .homepage-newsletter-title {
        font-size: 26px !important;
    }
}
