/**
 * Rio Banner Styles - Modern Professional Design
 *
 * @package Astra Child
 */

:root {
    /* Banner Heights - Reduced */
    --rio-banner-height: 320px;
    --rio-banner-tablet-height: 280px;
    --rio-banner-mobile-height: 240px;
    
    /* Colors - Green Theme */
    --rio-primary-color: #10b981;
    --rio-secondary-color: #059669;
    --rio-accent-color: #34d399;
    --rio-green-dark: #047857;
    --rio-green-light: #6ee7b7;
    --rio-text-light: #ffffff;
    --rio-text-muted: rgba(255, 255, 255, 0.9);
    
    /* Gradients - Green Theme */
    --rio-gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --rio-gradient-secondary: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --rio-gradient-vibrant: linear-gradient(135deg, #6ee7b7 0%, #10b981 50%, #047857 100%);
    --rio-gradient-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    
    /* Animations */
    --rio-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Banner Container */
.rio-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: var(--rio-banner-height);
    display: block !important;
    overflow: hidden;
    background: var(--rio-gradient-primary);
    z-index: 1;
    margin-bottom: 0;
}

/* Background Image Layer */
.rio-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Gradient Background for pages without featured image */
.rio-banner-gradient {
    background: var(--rio-gradient-vibrant);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Overlay Layer */
.rio-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rio-gradient-dark);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner Container */
.rio-banner-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
}

/* Content Container */
.rio-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    /* text-align: center; */
}

/* Animated Background Shapes */
.banner-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 18s infinite ease-in-out;
    filter: blur(1px);
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--rio-green-light), var(--rio-accent-color));
    top: -125px;
    left: -125px;
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.3);
}

.shape-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--rio-accent-color), var(--rio-primary-color));
    bottom: -90px;
    right: -90px;
    animation-delay: 6s;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--rio-primary-color), var(--rio-green-dark));
    top: 30%;
    right: 20%;
    animation-delay: 12s;
    box-shadow: 0 0 20px rgba(4, 120, 87, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}

/* Text Content */
.banner-text-content {
    position: relative;
    z-index: 2;
}

/* Title Styling */
.banner-title-wrapper {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.banner-title {
    margin: 0;
    padding: 0;
}

.title-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rio-text-light);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.title-divider {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--rio-accent-color), var(--rio-secondary-color));
    margin: 20px auto;
    border-radius: 2px;
}

.title-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--rio-text-muted);
    margin-top: 12px;
    letter-spacing: 0.3px;
}

/* Breadcrumb Styling */
.banner-breadcrumb {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    margin-top: 15px;
}

.rio-breadcrumb-nav {
    display: inline-block;
    /* Removed background and box shadow */
    padding: 5px 0;
    /* Removed border */
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--rio-text-muted);
}

.breadcrumb-link {
    color: var(--rio-text-muted);
    text-decoration: none;
    transition: var(--rio-transition);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.breadcrumb-link:hover {
    color: var(--rio-text-light);
    text-decoration: underline;
}

.breadcrumb-home-icon {
    width: 16px;
    height: 16px;
}

.breadcrumb-separator {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    margin: 0 4px;
}

.breadcrumb-current {
    color: var(--rio-text-light);
    font-weight: 500;
}

.breadcrumb-current span {
    padding: 4px 8px;
}

/* Scroll Indicator */
.banner-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    color: var(--rio-text-muted);
    transition: var(--rio-transition);
}

.banner-scroll-indicator:hover {
    color: var(--rio-text-light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (min-width: 1025px) {
    .rio-banner {
        min-height: var(--rio-banner-height);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .rio-banner {
        min-height: var(--rio-banner-tablet-height);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .title-main {
        font-size: 2.2rem;
    }
    
    .title-subtitle {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .rio-banner {
        min-height: var(--rio-banner-mobile-height);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .rio-banner-content {
        padding: 30px 15px;
    }
    
    .title-main {
        font-size: 1.9rem;
    }
    
    .title-subtitle {
        font-size: 0.95rem;
    }
    
    .rio-breadcrumb-nav {
        padding: 5px 0;
        width: 100%;
    }
    
    .breadcrumb-container {
        overflow-x: auto;
        padding-bottom: 5px;
        /* Hide scrollbar but allow scrolling */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .breadcrumb-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    .breadcrumb-link {
        padding: 3px 4px;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-3 {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 480px) {
    .rio-banner {
        min-height: 260px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .rio-banner-content {
        padding: 25px 15px;
    }
    
    .banner-title-wrapper {
        margin-bottom: 20px;
    }
    
    .title-main {
        font-size: 1.6rem;
    }
    
    .title-subtitle {
        font-size: 0.85rem;
        margin-top: 8px;
    }
    
    .title-divider {
        width: 50px;
        height: 3px;
        margin: 12px 0;
    }
    
    .rio-breadcrumb-nav {
        padding: 3px 0;
    }
    
    .breadcrumb-item {
        font-size: 0.75rem;
    }
    
    .breadcrumb-home-icon,
    .breadcrumb-separator {
        width: 12px;
        height: 12px;
    }
    
    .banner-scroll-indicator {
        bottom: 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .banner-scroll-indicator,
    .rio-banner-gradient {
        animation: none;
    }
    
    .banner-title-wrapper,
    .banner-breadcrumb {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
