
/* ==========================================================================
   CSS VARIABLES (CUSTOM PROPERTIES)
   ========================================================================== */
:root {
    --primary-color: #85654e;
    --primary-dark: #6b4f3e;
    --secondary-color: #796249;
    --accent-color: #E84610;
    --text-color: #2d261b;
    --text-muted: #5a4a3a;
    --bg-primary: #fcfaf6;
    --bg-secondary: #eee8df;
    --bg-white: #fff;
    --bg-dark: #445261;
    --font-primary: "Instrument Sans", sans-serif;
    --font-secondary: 'Lato', sans-serif;
    --border-radius: 6px;
    --transition: all 0.2s ease;
}

/* ==========================================================================
   GLOBAL BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY
   ========================================================================== */

/* Base typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    color: var(--text-color);
}

/* Section titles */
.section-title {
    font-size: 3.5rem;
    letter-spacing: 2px;
    text-transform: capitalize;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Section subtitles */
.section-subtitle {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0;
    font-style: italic;
    line-height: 1.6;
}

/* About subtitle variant */
.about-subtitle {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Typography overrides */
h1 {
    font-weight: 400;
}


/* ==========================================================================
   GLOBAL BUTTON STYLES
   ========================================================================== */

/* Base button styles */
.btn,
.btn-primary,
.btn-custom,
.btn-signup,
.btn-edit,
.btn-close {
    background-color: var(--primary-color);
    color: #fafafa;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.btn:hover,
.btn-primary:hover,
.btn-custom:hover,
.btn-signup:hover,
.btn-edit:hover,
.btn-close:hover {
    background-color: var(--primary-dark);
    color: #fafafa;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-dark);
}

/* Minimal button variant */
.btn-minimal,
.recipe-btn-minimal {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    background: none;
    border: none;
    padding: 0;
}

.btn-minimal:hover,
.recipe-btn-minimal:hover {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-dark);
}

/* ==========================================================================
   GLOBAL LAYOUT COMPONENTS
   ========================================================================== */

.container {
    font-family: var(--font-primary);
}

.main-bg {
    background-color: var(--bg-primary);
}

.light-bg {
    background-color: var(--bg-white);
}

.dark-bg {
    background-color: var(--bg-dark);
}

.section-light {
    background-color: var(--bg-primary);
    padding: 2rem 0;
}

.section-dark {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
}

/* Section containers */
.section-container,
.about-me,
.reels-gallery {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
}

/* ==========================================================================
   GLOBAL GALLERY ITEMS
   ========================================================================== */

/* Base gallery item styles */
.gallery-item,
.dessert-item {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.gallery-item:hover,
.dessert-item:hover {
    transform: translateY(-5px);
}

.gallery-item img,
.dessert-item img,
.dessert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img,
.dessert-item:hover img,
.dessert-item:hover .dessert-image {
    transform: scale(1.05);
}

/* ==========================================================================
   GLOBAL LINKS
   ========================================================================== */

.recipes-link {
    text-decoration: none;
    color: inherit;
}

.recipes-link:hover {
    text-decoration: none;
    color: inherit;
}

.post-link {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

.post-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.link {
    color: #23BBBB;
    text-decoration: none;
}

.link:hover,
.link:active {
    color: var(--bg-dark);
    text-decoration: underline;
}

/* ==========================================================================
   GLOBAL UTILITY CLASSES
   ========================================================================== */

.red-o {
    color: var(--accent-color);
}

.thin {
    font-weight: 300;
}

.faded {
    color: rgb(172, 175, 175);
}

.approval {
    color: rgb(222, 146, 168);
}

/* ==========================================================================
   TOP BANNER SECTION
   ========================================================================== */

.top-banner {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-banner p {
    margin: 0;
    color: var(--text-color);
}

/* ==========================================================================
   NAVBAR SECTION
   ========================================================================== */

.navbar {
    background-color: var(--bg-primary) !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    
}

.logo {
    max-height: 9rem;
    width: auto;
    margin-top: 3rem;
    
}

.nav-link {
    color: var(--secondary-color) !important;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Social Media Icons */
.social-icons-desktop,
.social-icons-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    color: var(--text-muted) !important;
    font-size: 1.2rem;
    padding: 0.5rem !important;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.social-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.social-icons-desktop {
    margin-left: auto;
}

.social-icons-mobile {
    border-top: 1px solid var(--bg-secondary);
    margin-top: 1rem;
    padding-top: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 2rem;
}

.hero-section .hero-content .hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 28px;
    color: white !important;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    text-transform: uppercase;
}

/* ==========================================================================
   SCROLLING BAR SECTION
   ========================================================================== */

.scrolling-bar {
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--bg-secondary);
    padding: 10px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #5c4a3d;
}

.scrolling-content {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    animation: scroll-left 46s linear infinite;
}

.scrolling-content span {
    display: inline-block;
    margin: 0 40px;
    display: inline-flex;
    align-items: center;
    gap: 80px;
}

.scrolling-content {
    display: inline-block;
    animation: scroll-left 21s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   RECIPES SECTION
   ========================================================================== */

.recipes-section-header {
    background-color: var(--bg-primary);
    margin-bottom: 2rem;
}

/* ==========================================================================
   RECIPE CARDS
   ========================================================================== */

.card {
    border: none;
    background-color: transparent;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-img-top {
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.5rem;
}

.image-container {
    position: relative;
}

.image-flash {
    position: absolute;
    top: 5%;
    min-width: 23%;
    right: -1px;
    background-color: var(--primary-dark);
    border-radius: 23px 0 0 23px;
}

.recipe-badge {
    color: white;
    margin: 8px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.scale {
    width: 100%;
    height: auto;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(133, 101, 78, 0.1);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination li {
    list-style: none;
}

.page-link {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: var(--transition);
    display: inline-block;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: #fafafa;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ==========================================================================
   MASTHEAD SECTION
   ========================================================================== */

.masthead {
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    height: 33vh;
    width: 100%;
}

.masthead-text {
    background-color: var(--bg-dark);
    color: white;
    position: relative;
}

.masthead-image {
    position: relative;
    overflow: hidden;
}

.masthead-image:after {
    content: "";
    position: absolute;
    top: 0;
    right: 90%;
    height: 100%;
    width: 150%;
    background: var(--bg-dark);
    -webkit-transform: skew(15deg);
    -moz-transform: skew(15deg);
    transform: skew(15deg);
    z-index: 100;
}

.post-title {
    margin-top: 10%;
    margin-left: 5%;
}

.post-subtitle {
    margin-left: 5%;
    color: lightgray;
}

/* ==========================================================================
   DESSERTS GALLERY SECTION
   ========================================================================== */

.dessert-item {
    width: 100%;
    height: 450px;
}

/* ==========================================================================
   REELS GALLERY SECTION
   ========================================================================== */

.reels-section-header {
    margin-bottom: 3rem;
}

.reel-embed {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.reel-embed:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.reel-embed blockquote {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-item {
    background-color: transparent;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(133, 101, 78, 0.1);
    transition: var(--transition);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-family: var(--font-primary);
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-family: var(--font-secondary);
}

.faq-answer strong {
    color: var(--primary-dark);
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */

.about-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 5rem;
    border-radius: var(--border-radius);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.about-text {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-signature {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.signature-text {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.signature-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.footer {
    background-color: var(--primary-color);
    color: #fafafa;
    padding: 3rem 0 1.5rem 0;
    margin-top: 3rem;
    font-family: var(--font-primary);
}

/* Footer Logo Section */
.footer-logo {
    text-align: center;
}

.footer-logo-img {
    height: 15rem;
    margin-bottom: 0.5rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: -3.5rem;
    color: #fafafa;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(250, 250, 250, 0.95);
    font-style: italic;
    margin-bottom: 0;
}

/* Footer Headings */
.footer-heading {
    color: #fafafa;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(250, 250, 250, 0.2);
    font-family: var(--font-primary);
}

/* Footer Lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(250, 250, 250, 0.98);
}

.footer-list .day {
    font-weight: 600;
    color: #fafafa;
}

.footer-list .season {
    font-weight: 600;
}

.footer-list .note {
    font-style: italic;
    font-size: 0.95rem;
}

/* Contact Section */
.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 1.2rem;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.footer a {
    color: rgba(250, 250, 250, 0.98);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: #fafafa;
    text-decoration: underline;
}

/* Footer Divider and Copyright */
.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(250, 250, 250, 0.3),
        transparent
    );
    margin: 1.5rem 0 1rem 0;
}

.footer-copyright {
    color: rgba(250, 250, 250, 0.95);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large screens and desktops (min-width: 992px) */
@media (min-width: 992px) {
    .navbar-brand.mx-lg-auto {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
}

/* Tablets and small desktops (max-width: 991.98px) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-heading {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 1.2rem;
    }
    
    .footer-list {
        text-align: center;
    }
    
    .footer-list li {
        font-size: 0.95rem;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-brand-text {
        font-size: 1.4rem;
    }
    
    .footer-tagline {
        font-size: 0.95rem;
    }
}

/* Mobile and tablets (max-width: 991px) */
@media (max-width: 991px) {
    .navbar-brand {
        position: static;
        transform: none;
    }
    
    .navbar-brand.mx-auto {
        position: static;
        transform: none;
        margin: 0 auto;
    }
    
    .navbar-toggler {
        order: -1;
        padding-top: 0 !important;
        align-self: flex-start !important;
        margin-top: 1rem;
    }
    
    .navbar-brand {
        order: 0;
        flex: 1;
        text-align: center;
    }
    
    /* Section titles */
    .section-title {
        font-size: 3rem;
        letter-spacing: 1.5px;
        text-align: center;
    }
    
    /* Section subtitles */
    .section-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .about-subtitle {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .about-content {
        padding: 1.5rem 0;
    }
    
    .about-text {
        text-align: left;
    }
    
    .dessert-item {
        height: 350px;
    }
    
    .reel-embed {
        margin-bottom: 1.5rem;
    }
}

/* Small tablets (max-width: 767.98px) */
@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-logo-img {
        height: 11rem;
    }
    
    .footer-brand-text {
        font-size: 1.3rem;
    }
    
    .footer-tagline {
        font-size: 0.95rem;
    }
    
    .footer-heading {
        font-size: 1.15rem;
        margin-top: 2rem;
    }
    
    .footer-list li {
        font-size: 0.95rem;
    }
}

/* Tablets and mobile (max-width: 768px) */
@media (max-width: 768px) {
    .section-light,
    .section-dark {
        padding: 1.5rem 0;
    }
    
    .btn,
    .btn-primary,
    .btn-custom,
    .btn-signup,
    .btn-edit,
    .btn-delete,
    .btn-close,
    .btn-like {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .recipe-btn-minimal {
        font-size: 0.8rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .page-link {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 0 2px;
    }
    
    h2 {
        margin-top: 1.5rem;
    }
    
    .hero-section {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    /* Section subtitles */
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-subtitle {
        font-size: 1.2rem;
    }
    
    .about-image {
        padding-right: 8rem;
    }

    .about-signature {
        padding-left: 10rem;

    }
    .about-content {
        padding: 1rem 0;
    }
    
    .about-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .faq-item {
        padding: 1.2rem 0;
    }
    
    .faq-question {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
}

/* Mobile devices (max-width: 576px) */
@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .about-signature {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .signature-text {
        font-size: 1.1rem;
    }
    
    .signature-name {
        font-size: 1rem;
    }
    
    .dessert-item {
        height: 280px;
    }
    
    .reel-embed {
        padding: 0.5rem;
    }
    
    .faq-item {
        padding: 1rem 0;
    }
    
    .faq-question {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .faq-answer {
        font-size: 0.85rem;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .navbar-brand,
    .brand {
        font-size: 1.2rem;
    }
    
    .masthead {
        height: 25vh;
    }
    
    .recipe-badge {
        font-size: 0.65rem;
    }
    
    .hero-section {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}