/* ===================================
   Mobile Hero Fixes - HR Fiber
   =================================== */

/* Hero height optimization */
@media (max-width: 640px) {
    .hero-slider {
        height: 550px !important;
        min-height: 550px;
    }
}

/* Hero content optimization for mobile */
@media (max-width: 768px) {
    .hero-slide-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Text sizes for all slides */
    .hero-slide-content h1 {
        font-size: 1.875rem !important; /* text-3xl */
        line-height: 1.2 !important;
        margin-bottom: 1rem;
    }
    
    .hero-slide-content p {
        font-size: 1rem !important; /* text-base */
        line-height: 1.5 !important;
        margin-bottom: 0.75rem;
    }
    
    /* Spacing */
    .hero-slide-content > div:first-child {
        gap: 1rem !important; /* space-y-4 */
    }
    
    /* Buttons container */
    .hero-buttons {
        gap: 0.5rem !important;
        padding-top: 0.5rem !important;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    /* Button styles for all hero buttons */
    .hero-buttons a {
        padding: 0.625rem 1rem !important; /* py-2.5 px-4 */
        font-size: 0.875rem !important; /* text-sm */
        border-radius: 0.5rem !important; /* rounded-lg */
        gap: 0.375rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .hero-buttons a span.material-symbols-outlined {
        font-size: 1.125rem !important; /* text-lg */
    }
    
    /* Make some buttons full width on small screens */
    .hero-buttons a:first-child {
        flex: 1 1 100%;
        min-width: 100%;
        justify-content: center;
    }
    
    /* Grid adjustments */
    .hero-slide-content.grid {
        gap: 2rem !important; /* gap-8 */
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .hero-slider {
        height: 500px !important;
    }
    
    .hero-slide-content h1 {
        font-size: 1.5rem !important; /* text-2xl */
    }
    
    .hero-buttons a {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.8125rem !important;
    }
}

/* Container padding adjustments */
@media (max-width: 768px) {
    .hero-slider .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Gradient text optimization */
@media (max-width: 768px) {
    .hero-gradient-text {
        display: inline-block;
        font-size: inherit;
    }
}

/* Remove extra margins on mobile */
@media (max-width: 768px) {
    .hero-slide {
        overflow: hidden;
    }
    
    .hero-slide-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Better button layout on small screens */
@media (max-width: 640px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem !important;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem !important;
        flex: none !important;
        min-width: auto !important;
    }
}

/* Improve text readability on mobile */
@media (max-width: 768px) {
    .hero-slide-content h1 {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    }
    
    .hero-slide-content p {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    }
}

/* Optimize space usage */
@media (max-width: 768px) {
    .hero-slide .hero-slide-content > div {
        max-width: 100%;
    }
}

/* Better vertical alignment */
@media (max-width: 768px) {
    .hero-slide-content {
        align-items: flex-start !important;
    }
    
    .hero-slide-content > div:first-child {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-top: 2rem;
    }
}

/* Fix for dots navigation on mobile */
@media (max-width: 768px) {
    .hero-controls {
        bottom: 1rem !important;
    }
    
    .hero-dot {
        width: 8px !important;
        height: 8px !important;
    }
}

/* Ensure buttons are clickable */
.hero-buttons a {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

/* Make sure overlay doesn't block buttons */
.hero-slide-overlay {
    pointer-events: none;
}

/* Ensure content is above overlay */
.hero-slide-content {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

/* Button hover states - استجابة فورية */
.hero-buttons a {
    transition: transform 0.1s ease !important; /* استجابة سريعة جداً */
}

.hero-buttons a:hover {
    transform: scale(1.05);
}

.hero-buttons a:active {
    transform: scale(0.98);
    transition: transform 0.05s ease !important; /* استجابة فورية عند الضغط */
}

/* Make sure all interactive elements work */
.hero-slide .container {
    position: relative;
    z-index: 10;
}

/* Prevent click blocking on mobile */
@media (max-width: 768px) {
    .hero-buttons a {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        touch-action: manipulation;
    }
}
