/* EUROMA - Custom Components CSS */

/* ========================================
   Base Styles
   ======================================== */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ========================================
   Carousel Styles
   ======================================== */

.carousel-container {
    position: relative;
}

.carousel-slide {
    transition: opacity 0.5s ease-in-out;
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* ========================================
   Navigation Styles
   ======================================== */

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #f59e0b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

/* ========================================
   Card Hover Effects
   ======================================== */

.research-card,
.team-card {
    transition: all 0.3s ease;
}

.research-card:hover,
.team-card:hover {
    transform: translateY(-5px);
}

/* ========================================
   Filter Buttons
   ======================================== */

.filter-btn,
.team-filter-btn {
    transition: all 0.2s ease;
}

.filter-btn.active,
.team-filter-btn.active {
    background-color: #2563eb;
    color: white;
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-toggle {
    transition: all 0.2s ease;
}

.faq-toggle:hover {
    background-color: #f9fafb;
}

.faq-toggle.active svg {
    transform: rotate(180deg);
}

.faq-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Form Styles
   ======================================== */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* ========================================
   Button Styles
   ======================================== */

button,
a[role="button"] {
    cursor: pointer;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #2563eb;
    color: white;
}

/* ========================================
   Scrollbar Styles
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ========================================
   Loading Animation
   ======================================== */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Gradient Backgrounds
   ======================================== */

.gradient-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ========================================
   Text Utilities
   ======================================== */

.text-balance {
    text-wrap: balance;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Image Styles
   ======================================== */

img {
    max-width: 100%;
    height: auto;
}

.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .bg-gradient-to-r {
        background: #1e3a5f !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ========================================
   Animation Classes
   ======================================== */

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

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

.animate-scale-in {
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   Shadow Utilities
   ======================================== */

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-hard {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Badge Styles
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.badge-success {
    background-color: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-danger {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* ========================================
   Country Flag Styles
   ======================================== */

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Alpine.js x-cloak
   ======================================== */

[x-cloak] {
    display: none !important;
}
