/**
 * Hero Section Component Styles
 * Author: ร้านเช่าTS4
 * Description: Styles for hero section including title, CTA buttons, and floating elements
 */

/* ========================================
   HERO SECTION BASE
   ======================================== */

.hero-section {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: var(--theme-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}

/* Banner image override - COMPLETELY REMOVE gradient when has-banner class is present */
.hero-section.has-banner {
    background: none !important;
    background-image: var(--theme-banner-url) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ========================================
   HERO TITLE STYLES
   ======================================== */

.hero-title {
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   CTA BUTTONS CONTAINER
   ======================================== */

.cta-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* ========================================
   SECONDARY BUTTONS
   ======================================== */

.secondary-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
}

.secondary-buttons a {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    transform: scale(1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 70px;
}

.secondary-buttons a:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.secondary-buttons a i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.secondary-buttons a:hover i {
    transform: translateY(-2px);
}

/* ========================================
   FEATURES GRID
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
}

.features-grid > div {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.features-grid > div:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   FLOATING ICONS
   ======================================== */

.floating-icon {
    position: absolute;
    color: white;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

.floating-icon:nth-child(1) {
    top: 1.5rem;
    left: 2rem;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 2rem;
    right: 3rem;
    animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
    bottom: 2rem;
    left: 3rem;
    animation-delay: 1s;
}

.floating-icon:nth-child(4) {
    bottom: 1.5rem;
    right: 2rem;
    animation-delay: 1.5s;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

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