/* Nurseries Page Styles */

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --nursery-green: #00A651;
    --gold: #FFD700;
}

.main-content {
    background: transparent;
    padding: 20px;
    padding-bottom: 20px;
}

/* Header Section */
.nurseries-header {
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.nurseries-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.nurseries-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Grid */
.nurseries-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* Nursery Card */
.nursery-card {
    position: relative;
    background: rgb(66 70 68 / 56%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    display: flex;
    padding: 15px;
    gap: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.nursery-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--nursery-green);
    box-shadow: 0 10px 30px rgba(0, 166, 81, 0.2);
}

.nursery-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--nursery-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nursery-card:hover::after {
    opacity: 1;
}

.nursery-logo-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    padding: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nursery-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nursery-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nursery-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.nursery-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.nursery-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
}

.nursery-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nursery-badges {
    display: flex;
    gap: 8px;
}

.nursery-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nursery-badge.products {
    background: rgba(0, 166, 81, 0.15);
    color: var(--nursery-green);
}

.nursery-badge.business-type {
    background: rgba(139, 69, 19, 0.2);
    color: #D2B48C;
    font-weight: 600;
}

/* Search Overlay */
.search-toggle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
}

.search-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.search-bar {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    width: 100%;
    outline: none;
}

/* Skeleton */
.nursery-skeleton {
    height: 110px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 28px;
}

@keyframes skeleton-loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    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;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nursery-card {
        padding: 12px;
        gap: 15px;
    }

    .nursery-logo-container {
        width: 70px;
        height: 70px;
    }

    .nursery-name {
        font-size: 16px;
    }
}

/* --- HANGING MOON (DARK MODE ONLY) --- */
.hanging-moon-container {
    position: absolute;
    top: 100%;
    /* Attach to bottom of nav */
    right: 70px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    pointer-events: none;
    transform-origin: top center;
    animation: moonSwing 4s ease-in-out infinite;
}

/* Show only in dark mode */
html.dark-mode .hanging-moon-container,
body.dark-mode .hanging-moon-container {
    display: flex;
}

.rope {
    width: 2px;
    height: 35px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.moon {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 30% 30%, #fdfcf0, #ebe29d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(253, 252, 240, 0.4), inset -2px -2px 5px rgba(0, 0, 0, 0.2);
    margin-top: -2px;
}

.moon i {
    font-size: 14px;
    color: #2D3436;
    opacity: 0.3;
}

@keyframes moonSwing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

#moonToggle.retracting {
    animation: moonRetract 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards !important;
}

@keyframes moonRetract {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    30% {
        transform: translateY(15px) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateY(-150px) scale(0.5);
        opacity: 0;
    }
}