/* ========================================
   NEW HOME PAGE STYLES
   ======================================== */

/* New Header with Centered Logo */
.app-header-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px 8px 20px;
    position: relative;
}

/* User Greeting Above Logo - Smaller */
.user-welcome-top {
    align-self: flex-start;
    margin-bottom: 8px;
}

.user-welcome-top h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.user-welcome-top .wave {
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }
}

.notification-btn-top {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--card-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-tagline {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    margin: 0;
    opacity: 0.85;
}

/* Large Mascots - Positioned so status card covers bottom half */
.hero-decoration-new {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 16px;
    z-index: 1;
    position: relative;
}

.mascot-large {
    width: 140px;
    height: 140px;
    object-fit: contain;
    animation: mascot-float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

/* Alternate animation for the second mascot */
.mascot-large:nth-of-type(2) {
    animation-delay: 1.5s;
}

/* Status Card - Positioned to overlap mascots and centered */
.status-card-container {
    padding: 0 20px !important;
    margin-top: -70px !important;
    /* Pull up to cover bottom half of mascots */
    position: relative;
    z-index: 2;
    /* Above mascots */
    display: flex;
    justify-content: center;
}

.status-card {
    width: 100% !important;
    max-width: none !important;
}

/* Action Button - Orange */
.action-section-new {
    padding: 0 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.btn-orange-large {
    background: linear-gradient(135deg, #FF9F4A 0%, #FF6F00 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.35);
}

.btn-orange-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.45);
}

.btn-orange-large:active {
    transform: translateY(-1px) scale(1);
}

/* Widget Cards - Sand Gradient with Defined Shadow */
.widget-card {
    background: linear-gradient(135deg, #F5F5DC 0%, #E8DCC0 100%) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
    border: none !important;
}

/* Status Card - Same width as button */
.status-card-container {
    padding: 0 20px !important;
}

.status-card {
    width: 100% !important;
    max-width: none !important;
}

/* Banner Carousel - ABOVE navigation bar */
.banner-carousel-bottom {
    position: fixed;
    bottom: 78px;
    /* Just above 72px navigation bar + small gap */
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px 8px 20px;
    z-index: 49;
    /* Below navigation (z-index: 100) */
}

.banner-carousel-bottom .banner-carousel {
    position: relative;
    height: 76px;
    overflow: hidden;
    border-radius: 16px;
}

/* Carousel Dots Above Banner */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: var(--primary-orange);
    width: 20px;
    border-radius: 4px;
}

/* Background - White at top, blue gradient starting RIGHT below waves */
body.home-page {
    background: #FFFFFF;
    /* Solid white background */
    background-image: url('../assets/ondas-home-bg.webp');
    background-size: 100% auto;
    background-position: center 85px;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
}

/* Blue gradient starting immediately below waves for seamless blend */
body.home-page::after {
    content: '';
    position: fixed;
    top: 295px;
    /* Start right below wave image */
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(100, 181, 246, 0.4) 0%,
            rgba(100, 181, 246, 0.5) 10%,
            rgba(100, 181, 246, 0.6) 30%,
            rgba(100, 181, 246, 0.7) 60%,
            rgba(100, 181, 246, 0.8) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above gradient */
body.home-page>* {
    position: relative;
    z-index: 1;
}

/* Bottom Navigation - AT THE BOTTOM (below banners visually, above in z-index) */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    z-index: 100 !important;
    /* Above banners */
    background: white !important;
}

/* Navigation Paw Icon - Petlify custom paw */
.nav-paw-icon {
    width: 31px;
    height: 31px;
    object-fit: contain;
    margin-bottom: -2px;
}

/* ========================================
   RESPONSIVE FIXES - SMALL SCREENS
   ======================================== */

/* For very small screens (iPhone SE, Samsung S8+) */
@media (max-width: 380px) {

    /* Reduce header padding */
    .app-header-new {
        padding: 12px 16px 6px 16px;
    }

    /* Smaller greeting */
    .user-welcome-top h1 {
        font-size: 1rem;
    }

    /* Smaller logo */
    .brand-logo {
        height: 28px;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }

    /* Smaller mascots */
    .mascot-large {
        width: 110px;
        height: 110px;
    }

    .hero-decoration-new {
        margin-top: 30px;
        margin-bottom: 12px;
        gap: 30px;
    }

    /* Less overlap */
    .status-card-container {
        margin-top: -50px !important;
    }

    /* Compact status card */
    .status-card {
        padding: 14px !important;
    }

    .status-header h3 {
        font-size: 0.9rem !important;
    }

    /* Smaller button */
    .btn-orange-large {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* Reduce spacing */
    .action-section-new {
        margin-bottom: 16px;
    }

    /* Compact 2x2 grid for small screens */
    .action-grid-2x2 {
        gap: 10px;
        margin-bottom: 150px;
    }

    .action-card {
        padding: 16px;
        font-size: 0.85rem;
        min-height: 85px;
    }

    .action-card i {
        font-size: 1.5rem;
    }

    .widgets-grid {
        gap: 12px;
        margin-bottom: 400px !important;
        /* Match base value */
    }
}

/* For short screens (small height) */
@media (max-height: 700px) {

    /* Compact vertical spacing */
    .hero-decoration-new {
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .mascot-large {
        width: 115px;
        height: 115px;
    }

    .status-card-container {
        margin-top: -45px !important;
    }

    .status-card {
        padding: 12px !important;
    }

    .action-section-new {
        margin-bottom: 14px;
    }

    .widgets-grid {
        margin-bottom: 165px;
        /* Space for banner + nav on short screens */
    }

    .banner-carousel-bottom {
        bottom: 74px;
        /* Closer to nav */
    }
}

/* Extreme small (iPhone SE portrait) */
@media (max-width: 375px) and (max-height: 670px) {
    .app-header-new {
        padding: 10px 16px 4px 16px;
    }

    .brand-header {
        gap: 6px;
        margin-top: 6px;
    }

    .brand-logo {
        height: 26px;
    }

    .brand-tagline {
        font-size: 0.8rem;
    }

    .hero-decoration-new {
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .mascot-large {
        width: 100px;
        height: 100px;
    }

    .status-card-container {
        margin-top: -40px !important;
        padding: 0 16px !important;
    }

    .status-card {
        padding: 10px !important;
    }

    .status-header {
        gap: 10px !important;
    }

    .truck-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .truck-icon i {
        font-size: 1.1rem !important;
    }

    .status-label {
        font-size: 0.7rem !important;
    }

    .status-header h3 {
        font-size: 0.85rem !important;
    }

    .progress-info {
        font-size: 0.75rem !important;
    }

    .action-section-new {
        padding: 0 16px;
        margin-bottom: 12px;
    }

    .btn-orange-large {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Very compact 2x2 grid for iPhone SE */
    .action-grid-2x2 {
        gap: 8px;
        margin-bottom: 140px;
        padding: 0 16px;
    }

    .action-card {
        padding: 14px;
        font-size: 0.8rem;
        min-height: 80px;
    }

    .action-card i {
        font-size: 1.3rem;
    }

    .widgets-grid {
        gap: 8px;
        margin-bottom: 400px !important;
        /* Match base value */
        padding: 0 16px;
    }
}