/* =========================================================================
   Soft Pink + White — Cutesy Theme for Kara's Treats
   ========================================================================= */

/* ---------- Palette ---------- */
:root {
    --pink-50:  #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-soft: #f4a0c0;
    --pink-blush: #fdd5e5;
    --white-accent: #ffffff;
    --off-white: #fffafd;
    --text-warm: #4a3040;
    --text-muted-warm: #7e6072;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Nunito', 'Quicksand', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-warm);
    background-color: var(--off-white);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.modal-title,
.card-title {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-weight: 700;
}

a, .btn-link {
    color: var(--pink-500);
    transition: color 0.25s ease;
}

a:hover, .btn-link:hover {
    color: var(--pink-400);
}

.btn-primary {
    color: #fff;
    background: #ff9eae;
    border: none;
    border-radius: 2rem;
    padding: 0.55rem 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, var(--pink-500), #db2777);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline-light {
    border-radius: 2rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.25);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem var(--pink-200), 0 0 0 0.3rem var(--pink-300);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================================================================
   Keyframe Animations
   ========================================================================= */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1.2) rotate(180deg); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-3deg); }
    75%      { transform: rotate(3deg); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heartBeat {
    0%   { transform: scale(1); }
    14%  { transform: scale(1.15); }
    28%  { transform: scale(1); }
    42%  { transform: scale(1.08); }
    70%  { transform: scale(1); }
}

/* =========================================================================
   Navbar Enhancements
   ========================================================================= */

.navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.navbar-brand {
    letter-spacing: 0.03em;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.04);
}

.navbar-nav .nav-link {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    transition: opacity 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* =========================================================================
   Hero Section
   ========================================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .display-3 {
    animation: fadeInUp 0.9s ease-out both;
}

.hero-section .lead {
    animation: fadeInUp 0.9s ease-out 0.2s both;
}

.hero-section::before {
    content: '♡';
    position: absolute;
    top: 15%;
    left: 8%;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.25);
    animation: floatBounce 3.5s ease-in-out infinite;
    pointer-events: none;
}

.hero-section::after {
    content: '✦';
    position: absolute;
    bottom: 18%;
    right: 10%;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.2);
    animation: sparkle 4s ease-in-out infinite;
    pointer-events: none;
}

/* =========================================================================
   Section Animations
   ========================================================================= */

.section-animate {
    animation: fadeInUp 0.7s ease-out both;
}

.section-animate:nth-child(odd) {
    animation-delay: 0.05s;
}

.section-animate:nth-child(even) {
    animation-delay: 0.1s;
}

/* =========================================================================
   Cute Headings
   ========================================================================= */

.cute-heading {
    position: relative;
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    padding-bottom: 0.4rem;
}

.cute-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--pink-300), var(--pink-500), var(--pink-300));
    border-radius: 4px;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* =========================================================================
   Cute Cards (Products & Party Packages)
   ========================================================================= */

.cute-card {
    border-radius: 1.2rem !important;
    border: 1px solid var(--pink-100) !important;
    background: var(--white-accent);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
}

.cute-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(244, 160, 192, 0.3),
                0 0 0 1px var(--pink-200);
}

.cute-card .card-body {
    position: relative;
}

.cute-card .card-title {
    color: var(--text-warm);
    transition: color 0.3s ease;
}

.cute-card:hover .card-title {
    color: var(--pink-500);
}

.cute-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink-300), var(--pink-500), var(--pink-300));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 1.2rem 1.2rem 0 0;
}

/* Card entrance animation */
.cute-card-wrapper {
    animation: fadeInUp 0.6s ease-out both;
}

.cute-card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.cute-card-wrapper:nth-child(2) { animation-delay: 0.15s; }
.cute-card-wrapper:nth-child(3) { animation-delay: 0.25s; }
.cute-card-wrapper:nth-child(4) { animation-delay: 0.35s; }
.cute-card-wrapper:nth-child(5) { animation-delay: 0.45s; }
.cute-card-wrapper:nth-child(6) { animation-delay: 0.55s; }

/* =========================================================================
   Section Backgrounds & Decorative Dividers
   ========================================================================= */

.bg-pink-soft {
    background-color: var(--pink-50);
}

.bg-pink-gradient {
    background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
}

.section-decorated {
    position: relative;
    overflow: hidden;
}

.section-decorated::before {
    content: '✿';
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 2.5rem;
    color: var(--pink-200);
    animation: floatBounce 4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

.section-decorated::after {
    content: '♡';
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    font-size: 2rem;
    color: var(--pink-200);
    animation: floatBounce 3.5s ease-in-out 0.5s infinite;
    pointer-events: none;
    opacity: 0.5;
}

/* Wavy divider between sections */
.wave-divider {
    position: relative;
    height: 50px;
    overflow: hidden;
    background: transparent;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
}

/* =========================================================================
   Gallery Carousel Enhancements
   ========================================================================= */

.carousel {
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(244, 160, 192, 0.2);
    transition: box-shadow 0.3s ease;
}

.carousel:hover {
    box-shadow: 0 12px 40px rgba(244, 160, 192, 0.35);
}

.carousel-item img,
.carousel-item video {
    height: 450px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-item.active img,
.carousel-item.active video {
    animation: fadeInUp 0.5s ease-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(244, 160, 192, 0.6);
    border-radius: 50%;
    padding: 1.2rem;
    transition: background-color 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(236, 72, 153, 0.8);
}

.carousel-indicators [data-bs-target] {
    background-color: var(--pink-300);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--pink-500);
    transform: scale(1.3);
}

/* =========================================================================
   Contact Form
   ========================================================================= */

.form-control,
.form-select {
    border-radius: 0.75rem;
    border-color: var(--pink-200);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 0.2rem rgba(244, 114, 182, 0.2);
}

.form-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--text-warm);
}

/* =========================================================================
   Modals — Cutesy Style
   ========================================================================= */

.modal-content {
    border-radius: 1.2rem;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--pink-100);
}

.modal-footer {
    border-top: 1px solid var(--pink-100);
}

.modal.show .modal-dialog {
    animation: fadeInUp 0.35s ease-out;
}

/* =========================================================================
   Footer
   ========================================================================= */

footer {
    position: relative;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

/* =========================================================================
   Scrollbar (webkit)
   ========================================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pink-50);
}

::-webkit-scrollbar-thumb {
    background: var(--pink-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink-400);
}

/* =========================================================================
   Selection Highlight
   ========================================================================= */

::selection {
    background-color: var(--pink-200);
    color: var(--text-warm);
}

/* =========================================================================
   Alert Success (contact form "thank you")
   ========================================================================= */

.alert-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

/* =========================================================================
   Badge — pill style
   ========================================================================= */

.badge {
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* =========================================================================
   Emoji Wiggle on Hover (headings with emojis)
   ========================================================================= */

h2:hover {
    animation: none;
}

/* =========================================================================
   Mobile / Responsive Enhancements
   ========================================================================= */

@media (max-width: 991.98px) {
    .carousel-item img,
    .carousel-item video {
        height: 320px;
    }

    .section-decorated::before,
    .section-decorated::after,
    .hero-section::before,
    .hero-section::after {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item img,
    .carousel-item video {
        height: 220px;
    }

    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .display-3 {
        font-size: 2rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .section-decorated::before,
    .section-decorated::after {
        display: none;
    }

    .cute-heading::after {
        width: 40px;
    }
}

/* Smooth touch scrolling for all scrollable containers */
.table-responsive,
.carousel {
    -webkit-overflow-scrolling: touch;
}

/* Ensure images never exceed their container */
img {
    max-width: 100%;
    height: auto;
}

/* Fix nav link tap targets for mobile (minimum 44px) */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}