/* --- HOME PAGE SECTIONS --- */
.carousel-section {
    text-align: center;
    margin-bottom: 12px;
}

.carousel-section h2,
.profiles-section h2 {
    text-align: center;
    margin: 0 0 20px;
    letter-spacing: 0.01em;
}

.carousel-container {
    background: var(--carousel-bg);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-slide {
    display: none;
    animation: fadeEffect 0.8s ease;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide blockquote {
    font-size: 1.2em;
    font-style: italic;
    margin: 0 0 10px 0;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SEARCH RESULT STYLES --- */
.search-result-card {
    background: var(--search-result-bg);
    border: 2px dashed #ffc107;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.search-reviews {
    margin: 15px 0;
    padding-left: 15px;
    border-left: 3px solid #ffc107;
}

.rate-container {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--card-border);
}

.search-review-item {
    margin-bottom: 15px;
}

/* --- RECENT ACTIVITY --- */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    padding: 4px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    max-height: none;
    overflow: visible;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 20px 15px;
    }

    .carousel-slide blockquote {
        font-size: 1.05em;
    }
}

/* --- HERO --- */
.hero-section {
    position: relative;
    min-height: 560px;
    background:
        radial-gradient(circle at top left, #ff8a8a 0%, #ff6b6b 26%, #d94d75 58%, #4a2a4d 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

[data-theme="dark"] .hero-section {
    background:
        radial-gradient(circle at top left, #ff8d72 0%, #d85c67 24%, #6c3557 58%, #161523 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.28) 35%,
            rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 22px 64px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 420px;
    gap: 60px;
    align-items: end;
}

.hero-copy {
    color: #fff;
    max-width: 620px;
}

.hero-kicker {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin: 0 0 14px;
    opacity: 0.92;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero-subcopy {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
}

/* --- TESTIMONIAL RAIL --- */
.testimonial-rail {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 24px 24px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testimonial-rail h2 {
    margin: 0 0 18px;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.vertical-carousel {
    position: relative;
    min-height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.vertical-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.vertical-carousel .carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.vertical-carousel blockquote {
    margin: 0 0 14px;
    font-size: 0.98rem;
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
}

.vertical-carousel .review-author {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.vertical-carousel .review-author em {
    color: rgba(255, 255, 255, 0.72);
}

/* --- HOME MAIN --- */
.home-main {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 22px 56px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.profiles-section h2 {
    text-align: center;
    margin: 0 0 28px;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

/* --- RECENT ACTIVITY --- */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    padding: 0;
}

.kid-card-skeleton {
    pointer-events: none;
}

.skeleton {
    display: block;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0) 100%),
        var(--carousel-bg);
    background-size: 220px 100%, 100% 100%;
    background-repeat: no-repeat;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.skeleton-copy {
    display: grid;
    gap: 8px;
    flex: 1;
}

.skeleton-line {
    height: 12px;
    width: 100%;
}

.skeleton-line-title {
    width: 68%;
}

.skeleton-line-meta {
    width: 42%;
}

.skeleton-line-heading {
    width: 58%;
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-line-stars {
    width: 32%;
    margin-bottom: 12px;
}

.skeleton-line-wide {
    width: 88%;
}

.skeleton-line-short {
    width: 52%;
}

.skeleton-image {
    width: 100%;
    height: 100%;
    min-height: 160px;
    border-radius: inherit;
}

.skeleton-pill {
    width: 48px;
    height: 32px;
    border-radius: 999px;
}

@keyframes skeletonShimmer {
    from {
        background-position: -220px 0, 0 0;
    }

    to {
        background-position: calc(100% + 220px) 0, 0 0;
    }
}

[data-theme="dark"] .skeleton {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0) 100%),
        var(--carousel-bg);
    background-size: 220px 100%, 100% 100%;
    background-repeat: no-repeat;
}

/* --- MOBILE --- */
@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
    }

    .testimonial-rail {
        max-width: 640px;
    }
}

@media (max-width: 860px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .brand-link,
    .brand-text-link,
    .mobile-search-toggle,
    .topbar-actions {
        justify-self: center;
    }

    .brand-text-link {
        align-items: center;
        text-align: center;
    }

    .mobile-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-search {
        display: none;
        grid-template-columns: 1fr;
        border-radius: 16px;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        gap: 10px;
    }

    .topbar-search.is-open {
        display: grid;
    }

    .topbar-search .search-input,
    .topbar-search .search-btn,
    .search-location-wrap {
        width: 100%;
        border-radius: 12px;
        border-right: none;
    }

    .topbar-search .search-input {
        height: 48px;
    }

    .search-name {
        border-radius: 12px;
    }

    .search-age {
        text-align: left;
    }

    .topbar-search .search-btn {
        border-radius: 12px;
    }

    .hero-section {
        min-height: 520px;
    }

    .hero-content {
        padding-top: 28px;
        padding-bottom: 42px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 8vw, 3.1rem);
    }

    .vertical-carousel blockquote {
        font-size: 0.92rem;
    }
}

@media (max-width: 640px) {
    .home-main {
        padding-top: 28px;
    }

    .testimonial-rail {
        padding: 18px;
    }

    .vertical-carousel blockquote {
        font-size: 0.84rem;
        line-height: 1.5;
    }
}
