/* ============================================================
   MY DEAR HONEY — COMMON / SHARED STYLES
   Loaded on every page via header.blade.php
   Contains: CSS variables, typography, navbar, buttons,
   footer, search modal, back-to-top, utility classes
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
    --rose:        #C94F7C;
    --rose-mid:    #E8547A;
    --rose-light:  #E88C8C;
    --blush:       #F6C1C1;
    --blush-pale:  #FFF5F5;
    --cream:       #FDF8F8;
    --dark:        #2D1B2E;
    --text:        #4A3040;
    --muted:       #8A6878;
    --white:       #ffffff;

    --grad-primary: linear-gradient(135deg, #C94F7C 0%, #E8547A 60%, #E88C8C 100%);
    --grad-soft:    linear-gradient(135deg, #FFF5F5 0%, #FDE8EE 100%);
    --grad-hero:    linear-gradient(135deg, #FDF0F6 0%, #FFF0F3 50%, #FCE8E8 100%);

    --shadow-sm:   0 4px 16px rgba(201,79,124,0.10);
    --shadow-md:   0 8px 32px rgba(201,79,124,0.14);
    --shadow-lg:   0 16px 56px rgba(201,79,124,0.20);

    --radius-sm:   12px;
    --radius-md:   18px;
    --radius-lg:   24px;

    --transition:  all 0.30s cubic-bezier(0.34, 1.20, 0.64, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    line-height: 1.25;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ── SPINNER ── */
#spinner {
    z-index: 9999;
    background: var(--blush-pale) !important;
}
.spinner-grow { color: var(--rose) !important; width: 3rem; height: 3rem; }

/* ── NAVBAR ── */
.nav-bar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201,79,124,0.10);
    box-shadow: 0 2px 20px rgba(201,79,124,0.07);
    padding: 0 !important;
}
.nav-bar .container { padding: 0 1.5rem; }
.navbar { padding: 14px 0 !important; }
.navbar-brand img { height: 52px; width: auto; }

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text) !important;
    padding: 8px 14px !important;
    border-radius: 50px;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--rose) !important;
    background: rgba(201,79,124,0.07);
}

/* ── GLOBAL BUTTONS ── */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: 50px !important;
    border: none !important;
    transition: var(--transition) !important;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--grad-primary) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 18px rgba(201,79,124,0.28) !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #B8406C, #C94F7C) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 28px rgba(201,79,124,0.38) !important;
}
.btn-primary:active { transform: translateY(-1px) !important; }

.btn-outline-primary {
    background: transparent !important;
    color: var(--rose) !important;
    border: 1.5px solid var(--rose) !important;
    box-shadow: none !important;
}
.btn-outline-primary:hover {
    background: var(--grad-primary) !important;
    color: var(--white) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-search {
    width: 40px; height: 40px;
    padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
}

/* ── SEARCH MODAL (global, in header.blade.php) ── */
#searchModal .modal-content { border-radius: var(--radius-md) !important; }
#searchModal .form-control {
    border-radius: 50px 0 0 50px !important;
    border: 1.5px solid rgba(201,79,124,0.20) !important;
    font-size: 1rem;
}
#searchModal .input-group-text {
    border-radius: 0 50px 50px 0 !important;
    background: var(--grad-primary) !important;
    color: var(--white) !important;
    border: none !important;
    cursor: pointer;
}

/* ── BACK TO TOP BUTTON (global, in footer.blade.php) ── */
.back-to-top {
    position: fixed !important;
    bottom: 28px; right: 28px;
    width: 44px !important; height: 44px !important;
    padding: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    background: var(--grad-primary) !important;
    box-shadow: var(--shadow-md) !important;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
}
.back-to-top.show { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════
   FOOTER (light card style) — renders on every page
   ════════════════════════════════════════════════════════════ */
.footer-wrap {
    background: #FFFFFF;
    padding-top: 48px;
    padding-bottom: 48px;
    border-top: 1px solid rgba(201,79,124,0.06);
    position: relative;
}
.footer-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDF8F8 100%);
    pointer-events: none;
}

.footer-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(201,79,124,0.10);
    border: 1px solid rgba(201,79,124,0.08);
    padding: 56px 48px 32px;
    overflow: hidden;
}
.footer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(135deg, #C94F7C 0%, #E8547A 50%, #F6C1C1 100%);
    border-radius: 28px 28px 0 0;
}
.footer-card::after {
    content: '♥';
    position: absolute;
    top: -40px; right: -30px;
    font-size: 220px;
    line-height: 1;
    color: rgba(201,79,124,0.04);
    pointer-events: none;
    font-family: serif;
}

.footer-card .brand-logo {
    height: 54px;
    width: auto;
    margin-bottom: 18px;
}
.footer-card .brand-desc {
    color: #6B5060;
    font-size: 0.88rem;
    line-height: 1.9;
    max-width: 320px;
    margin-bottom: 1.4rem;
}

.footer-h {
    font-family: 'Playfair Display', serif;
    color: #2D1B2E;
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}
.footer-h::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 2px;
    background: linear-gradient(135deg, #C94F7C, #E8547A);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #6B5060;
    font-size: 0.87rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.footer-links a i {
    font-size: 0.6rem;
    color: #C94F7C;
    transition: transform 0.25s ease;
}
.footer-links a:hover {
    color: #C94F7C;
    transform: translateX(4px);
}
.footer-links a:hover i { transform: translateX(3px); }

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #6B5060;
    font-size: 0.87rem;
    line-height: 1.55;
}
.footer-contact-row a {
    color: #6B5060;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-row a:hover { color: #C94F7C; }
.footer-contact-icon {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(201,79,124,0.08);
    color: #C94F7C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: all 0.3s;
}
.footer-contact-row:hover .footer-contact-icon {
    background: linear-gradient(135deg, #C94F7C, #E8547A);
    color: #fff;
    transform: scale(1.06);
}

.footer-social {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201,79,124,0.07);
    color: #C94F7C;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(0.34,1.2,0.64,1);
    text-decoration: none;
    border: 1px solid rgba(201,79,124,0.10);
}
.footer-social:hover {
    background: linear-gradient(135deg, #C94F7C, #E8547A);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(201,79,124,0.30);
    border-color: transparent;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(201,79,124,0.10);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.footer-bottom .copyright-text {
    color: #8A6878;
    font-size: 0.82rem;
}
.footer-bottom .copyright-text strong {
    color: #2D1B2E;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}
.footer-bottom .copyright-text i { color: #C94F7C; }
.footer-bottom .legal-links a {
    color: #8A6878;
    text-decoration: none;
    font-size: 0.82rem;
    margin-left: 20px;
    transition: color 0.2s;
}
.footer-bottom .legal-links a:first-child { margin-left: 0; }
.footer-bottom .legal-links a:hover { color: #C94F7C; }

/* ── UTILITY CLASSES (global) ── */
.text-primary { color: var(--rose) !important; }
.bg-primary { background: var(--grad-primary) !important; }
.border-primary { border-color: rgba(201,79,124,0.22) !important; }
.py-6 { padding-top: 72px !important; padding-bottom: 72px !important; }

/* ── RESPONSIVE (shared — navbar, footer, back-to-top) ── */
@media (max-width: 991px) {
    .footer-card { padding: 44px 32px 28px; }
}
@media (max-width: 768px) {
    .navbar-brand img { height: 44px; }
    .footer-card { padding: 36px 24px 24px; border-radius: 20px; }
    .footer-wrap { padding-top: 32px; padding-bottom: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom .legal-links a:first-child { margin-left: 0; }
    .py-6 { padding-top: 56px !important; padding-bottom: 56px !important; }
}
@media (max-width: 576px) {
    .footer-card { padding: 28px 18px 20px; }
    .footer-card .brand-desc { max-width: 100%; }
    .py-6 { padding-top: 48px !important; padding-bottom: 48px !important; }
    .back-to-top { bottom: 16px; right: 16px; }
}
