/* Unified Page Hero Component Styles */

.page-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-light) 50%, var(--dark-color) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(11, 37, 69, 0.4) 0%, rgba(7, 19, 48, 0.5) 100%);
    pointer-events: none;
}

.page-hero .overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.page-hero .hero-badge i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    background: var(--secondary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.page-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.page-hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.page-hero .hero-buttons .btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 150px; /* Reduced for better proportion */
    max-width: 300px; /* Prevent buttons from being too wide */
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

.page-hero .hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.page-hero .hero-buttons .btn:hover::before {
    left: 100%;
}

.page-hero .hero-btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f1c40f 100%);
    color: var(--dark-color);
    border-color: var(--secondary-color);
    font-weight: 700;
}

.page-hero .hero-btn-primary:hover {
    background: linear-gradient(135deg, #f1c40f 0%, var(--secondary-color) 100%);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: var(--primary-color);
}

.page-hero .hero-btn-secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    font-weight: 700;
}

.page-hero .hero-btn-secondary:hover {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.4);
}

.page-hero .hero-btn-tertiary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f1c40f 100%);
    color: var(--dark-color);
    border-color: var(--secondary-color);
    font-weight: 700;
}

.page-hero .hero-btn-tertiary:hover {
    background: linear-gradient(135deg, #f1c40f 0%, var(--secondary-color) 100%);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: var(--primary-color);
}

/* Destination Hero Specific Elements */
.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-hero .breadcrumb a:hover {
    color: var(--secondary-color);
}

.page-hero .breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb i {
    font-size: 10px;
}

.page-hero .destination-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    animation: fadeInUpDelayed 1.2s ease-out 0.8s forwards;
}

@keyframes fadeInUpDelayed {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero .destination-highlights .highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.page-hero .destination-highlights .highlight:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.page-hero .destination-highlights .highlight i {
    font-size: 12px;
    color: var(--secondary-color);
}

/* Offer Hero Specific Elements */
.page-hero .offer-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    animation: fadeInUpDelayed 1.2s ease-out 0.8s forwards;
}

.page-hero .offer-highlights .highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.page-hero .offer-highlights .highlight:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.page-hero .offer-highlights .highlight i {
    font-size: 14px;
    color: var(--secondary-color);
}

.page-hero .offer-price-hero {
    text-align: center;
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    animation: fadeInUpDelayed 1.2s ease-out 0.8s forwards;
}

.page-hero .offer-price-hero .text {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(211, 207, 207, 0.846);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: block;
    line-height: 1;
}

.page-hero .offer-price-hero .current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: block;
    line-height: 1;
}

.page-hero .offer-price-hero .per-person {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    display: block;
}

/* Animation classes for hero elements */
.page-hero.animated .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.page-hero.animated .hero-badge {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.page-hero.animated h1 {
    opacity: 1;
    transition-delay: 0.4s;
}

.page-hero.animated p {
    opacity: 1;
    transition-delay: 0.6s;
}

.page-hero.animated .destination-highlights,
.page-hero.animated .offer-highlights {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.page-hero.animated .offer-price-hero {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.page-hero.animated .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        height: 80vh;
        min-height: 500px;
        padding: 20px 0;
        animation: gradientShift 30s ease infinite; /* Slower animation for tablets */
    }
    
    .page-hero .hero-content {
        padding: 0 15px;
    }
    
    .page-hero .hero-badge {
        font-size: 12px;
        padding: 10px 20px;
        margin-bottom: 20px;
    }
    
    .page-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
    }
    
    .page-hero p {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 30px;
    }
    
    .page-hero .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }
    
    .page-hero .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px; /* Reduced for better proportion to text */
        max-width: 250px; /* Prevent buttons from being too wide */
        white-space: nowrap; /* Prevent text wrapping */
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 70vh;
        min-height: 450px;
        animation: gradientShift 45s ease infinite; /* Even slower animation for mobile phones */
    }
    
    .page-hero .hero-badge {
        font-size: 11px;
        padding: 8px 16px;
    }
    
    .page-hero .hero-buttons .btn {
        padding: 10px 18px;
        min-width: 100px; /* Smaller minimum for very small screens */
        max-width: 200px; /* Prevent buttons from being too wide */
        font-size: 13px;
        white-space: nowrap; /* Prevent text wrapping */
    }
}

/* Animation for scroll effects */
@media (prefers-reduced-motion: no-preference) {
    .page-hero {
        transition: transform 0.1s ease-out;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .page-hero {
        background: var(--dark-color);
    }
    
    .page-hero::before {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .page-hero h1 {
        -webkit-text-fill-color: white;
        color: white;
    }
}

/* Print styles */
@media print {
    .page-hero {
        height: auto;
        min-height: auto;
        background: white;
        color: black;
        page-break-inside: avoid;
    }
    
    .page-hero::before {
        display: none;
    }
    
    .page-hero .hero-buttons {
        display: none;
    }
} 