/* Responsive Enhancements for Al-Ahsa Investment Platform */

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .filters {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .opportunity-card-row {
        grid-template-columns: 1fr;
        margin-bottom: 1.5rem;
    }
    
    .opportunity-info {
        padding: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Screen Enhancements */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .opportunities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Enhanced Hover Effects */
.opportunity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(165, 128, 84, 0.15);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(165, 128, 84, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(165, 128, 84, 0.3);
}

/* Smooth Animations */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #a58054;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Focus States for Accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #a58054;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-section,
    .filters,
    .navigation,
    .footer {
        display: none;
    }
    
    .opportunity-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .btn-hero.primary {
        border: 2px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .welcome,
    .stat-card,
    .filters,
    .opportunity-card-row {
        background: rgba(40, 30, 20, 0.95);
        color: #f8f9fa;
    }
    
    .opportunity-info h3 {
        color: #f8f9fa;
    }
}
