/**
 * AIIKS Website - Minimal Custom Styles
 * Most styling is handled by Tailwind CSS utility classes
 */

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(to right, theme('colors.secondary.DEFAULT'), theme('colors.accent.DEFAULT'));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Card Flip Animation */
.flip-card {
  perspective: 1000px;
  width: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.5rem;
}

.flip-card-front {
  background-color: #fff;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Font families */
.font-sans {
  font-family: 'Inter', system-ui, sans-serif;
}

.font-heading {
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* Prevent Flash of Unstyled Content (FOUC) */
[x-cloak] {
    display: none !important;
}

/* Logo sizing - prevent flash before Alpine.js loads */
.header-logo {
    height: 120px;
    transition: height 0.3s ease;
    max-height: 120px;
}

/* Ensure smooth transitions for logo */
header img {
    transition: height 0.3s ease;
}

/* Prevent layout shift by setting initial header height */
header {
    min-height: 128px; /* Accommodate the 120px logo + padding */
}

/* Custom Utility Classes */
.error {
    border-color: #ef4444 !important;
}

.flash-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.flash-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #ef4444;
}

.flash-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.flash-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    color: #1f2937;
    text-decoration: none;
}

.pagination a {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
}

.pagination a:hover {
    background-color: #e5e7eb;
}

.pagination .pagination-current {
    background-color: #4ade80;
    color: #0f172a;
    font-weight: 600;
    border: 1px solid #4ade80;
}

.pagination .disabled {
    color: #9ca3af;
    background-color: #f3f4f6;
    cursor: not-allowed;
    border: 1px solid #d1d5db;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #4ade80;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #86efac;
}

/* Custom Form Styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    max-width: 100%;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-right: none;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.newsletter-form button {
    background-color: #4ade80;
    color: #0f172a;
    padding: 0.75rem 1rem;
    border: none;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #86efac;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Enhanced Mission Section Styles */
.mission-stats-card {
    transition: all 0.3s ease;
}

.mission-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Mission Section Grid Improvements */
.mission-grid {
    align-items: stretch;
}

.mission-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-map {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Stats Cards Enhanced Styling */
.stats-card {
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ca8a04, transparent);
    transition: left 0.5s;
}

.stats-card:hover::before {
    left: 100%;
}

/* Map Container Enhancements */
.map-wrapper {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 1rem;
    padding: 2rem;
}

/* Responsive improvements for mission section */
@media (max-width: 1024px) {
    .mission-grid {
        gap: 2rem;
    }
    
    .mission-content,
    .mission-map {
        order: unset;
    }
}

@media (max-width: 640px) {
    .mission-grid {
        gap: 1.5rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .map-wrapper {
        padding: 1.5rem;
    }
} 