/* ============================================================
   UniNounou — Custom Styles
   Pink-themed nanny platform with animations & gradients
   ============================================================ */

/* ---------- Google Font ---------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
    --pink-50: #fff0f5;
    --pink-100: #ffe0ec;
    --pink-200: #ffc1d9;
    --pink-300: #ff8cb8;
    --pink-400: #ff5c9a;
    --pink-500: #ff2d7b;
    --pink-600: #e91e6c;
    --pink-700: #c2185b;
    --pink-800: #9c1048;
    --pink-900: #7a0b3a;
    --gold: #ffd700;
    --green-wa: #25d366;
    --bg-light: #fff8fa;
    --text-dark: #2d2d2d;
    --text-muted: #7a7a8e;
    --card-shadow: 0 4px 24px rgba(233, 30, 108, 0.08);
    --card-shadow-hover: 0 8px 40px rgba(233, 30, 108, 0.16);
}

* {
    font-family: "Poppins", sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ---------- Gradients ---------- */
.gradient-pink {
    background: linear-gradient(135deg, #ff2d7b 0%, #ff8cb8 50%, #ffd0e5 100%);
}
.gradient-pink-soft {
    background: linear-gradient(180deg, #ffe0ec 0%, #fff8fa 100%);
}
.gradient-hero {
    background: linear-gradient(
        160deg,
        #ffe0ec 0%,
        #ffc1d9 30%,
        #ffe0ec 60%,
        #fff0f5 100%
    );
}
.gradient-card {
    background: linear-gradient(145deg, #ffffff 0%, #fff8fa 100%);
}
.gradient-btn {
    background: linear-gradient(135deg, #ff2d7b 0%, #ff5c9a 100%);
}
.gradient-btn:hover {
    background: linear-gradient(135deg, #e91e6c 0%, #ff2d7b 100%);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes pulse-soft {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}
@keyframes blob {
    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out both;
}
.animate-fade-in-down {
    animation: fadeInDown 0.5s ease-out both;
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out both;
}
.animate-slide-left {
    animation: slideInLeft 0.6s ease-out both;
}
.animate-slide-right {
    animation: slideInRight 0.6s ease-out both;
}
.animate-pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}
.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}
.delay-300 {
    animation-delay: 0.3s;
}
.delay-400 {
    animation-delay: 0.4s;
}
.delay-500 {
    animation-delay: 0.5s;
}
.delay-600 {
    animation-delay: 0.6s;
}

/* ---------- Buttons ---------- */
.btn-pink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff2d7b 0%, #ff5c9a 100%);
    box-shadow: 0 4px 16px rgba(255, 45, 123, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 45, 123, 0.45);
    background: linear-gradient(135deg, #e91e6c 0%, #ff2d7b 100%);
    color: #fff;
}
.btn-pink:active {
    transform: translateY(0);
}

.btn-outline-pink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    color: var(--pink-500);
    background: transparent;
    border: 2px solid var(--pink-300);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-outline-pink:hover {
    background: var(--pink-50);
    border-color: var(--pink-500);
    transform: translateY(-2px);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    color: #fff;
    background: #25d366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
}
.btn-whatsapp:hover {
    background: #1daf54;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(233, 30, 108, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 1.5rem;
}
.card:hover {
    box-shadow: 0 8px 40px rgba(233, 30, 108, 0.16);
    transform: translateY(-4px);
}

.card-pink {
    background: linear-gradient(145deg, #fff0f5 0%, #ffffff 100%);
    border: 1px solid #ffe0ec;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(233, 30, 108, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-pink:hover {
    box-shadow: 0 8px 40px rgba(233, 30, 108, 0.16);
}

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-pink {
    background: var(--pink-100);
    color: var(--pink-700);
}
.badge-nanny {
    background: linear-gradient(135deg, #ff2d7b, #ff5c9a);
    color: #fff;
}
.badge-parent {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
}
.badge-service {
    background: var(--pink-50);
    color: var(--pink-600);
    border: 1px solid var(--pink-200);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
}

/* ---------- Form Inputs ---------- */
.input-pink {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ffe0ec;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
}
.input-pink:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 3px rgba(255, 45, 123, 0.1);
}
.input-pink::placeholder {
    color: #c4c4d4;
}

.select-pink {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ffe0ec;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FF2D7B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 01.753 1.659l-4.796 5.48a1 1 0 01-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}
.select-pink:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 3px rgba(255, 45, 123, 0.1);
}

.label-pink {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.35rem;
}

/* ---------- Decorative blobs ---------- */
.blob-pink {
    position: absolute;
    background: radial-gradient(
        circle,
        rgba(255, 45, 123, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- Star rating ---------- */
.star {
    color: var(--gold);
    font-size: 1rem;
}
.star-empty {
    color: #e0e0e0;
}

/* ---------- Like button ---------- */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.like-btn:hover,
.like-btn.liked {
    color: var(--pink-500);
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #ffe0ec;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ---------- Hero decorative shapes ---------- */
.hero-shape-left {
    position: absolute;
    left: -60px;
    top: 20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 140, 184, 0.3),
        transparent 70%
    );
    border-radius: 50%;
    animation: blob 8s ease-in-out infinite;
}
.hero-shape-right {
    position: absolute;
    right: -30px;
    bottom: 10px;
    width: 150px;
    height: 150px;
    opacity: 0.4;
}

/* ---------- Section title ---------- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--pink-200), transparent);
    margin-left: 1rem;
}

/* ---------- Scroll animations (intersection observer) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Chat widget pink ---------- */
.chat-header-pink {
    background: linear-gradient(135deg, #ff2d7b, #ff5c9a);
}

/* ---------- Calendar ---------- */
.cal-available {
    background: linear-gradient(135deg, #ff2d7b20, #ff5c9a30);
    color: var(--pink-600);
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}
.cal-available:hover {
    background: var(--pink-500);
    color: #fff;
    transform: scale(1.1);
}

/* ---------- Responsive fix ---------- */
@media (max-width: 640px) {
    .hero-shape-left,
    .hero-shape-right {
        display: none;
    }
}

/* ---------- Loading skeleton ---------- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* ---------- Toast notification ---------- */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    animation: fadeInDown 0.4s ease-out;
}
.toast-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.toast-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ---------- Active nav link ---------- */
.nav-link-active {
    color: var(--pink-500) !important;
    background: var(--pink-50);
    border-radius: 0.5rem;
}

/* ---------- Confirmation Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}
.modal-box {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.3s ease-out;
}
.modal-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.modal-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ---------- Flatpickr pink theme override ---------- */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--pink-500) !important;
    border-color: var(--pink-500) !important;
}
.flatpickr-day:hover {
    background: var(--pink-50) !important;
    border-color: var(--pink-200) !important;
}
.flatpickr-months .flatpickr-month {
    background: var(--pink-500) !important;
    color: #fff !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--pink-500) !important;
    color: #fff !important;
}
.flatpickr-weekdays {
    background: var(--pink-50) !important;
}
span.flatpickr-weekday {
    color: var(--pink-600) !important;
    font-weight: 600;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #fff !important;
    color: #fff !important;
}
.flatpickr-current-month input.cur-year {
    color: #fff !important;
}

/* ---------- Admin dashboard ---------- */
.admin-stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(233, 30, 108, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--pink-500);
}
.admin-stat-card:hover {
    box-shadow: 0 8px 40px rgba(233, 30, 108, 0.16);
    transform: translateY(-2px);
}

/* ---------- Availability badge ---------- */
.badge-available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---------- Language switcher ---------- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    text-decoration: none;
}
.lang-switch:hover {
    color: var(--pink-500);
    background: var(--pink-50);
}
.lang-switch.active {
    color: var(--pink-500);
    background: var(--pink-50);
}
