/* Common Layout Styles for Mita Website */

/* Common color scheme */
:root {
    --primary-25: #f8fafc;
    --primary-50: #f1f5f9;
    --primary-100: #e2e8f0;
    --primary-200: #cbd5e1;
    --primary-300: #94a3b8;
    --primary-400: #64748b;
    --primary-500: #475569;
    --primary-600: #334155;
    --primary-700: #1e293b;
    --primary-800: #0f172a;
    --primary-900: #020617;
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;
}

/* Common gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #334155, #7c3aed, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation utilities */
.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Layout spacing */
.layout-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Page content with header padding */
.page-content {
    padding-top: 80px; /* Account for fixed header */
    min-height: calc(100vh - 80px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-content {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Language dropdown animation */
#language-dropdown {
    transition: all 0.2s ease;
    transform-origin: top right;
}

#language-dropdown.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
}

#language-dropdown:not(.hidden) {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Section padding consistency */
.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* Common button styles */
.btn-primary {
    @apply inline-flex items-center justify-center rounded-lg bg-primary-600 px-6 py-3 text-sm font-semibold text-white shadow-sm hover:bg-primary-500 transition-all duration-200 hover:shadow-lg;
}

.btn-secondary {
    @apply inline-flex items-center justify-center rounded-lg border border-primary-200 bg-white px-6 py-3 text-sm font-semibold text-primary-600 shadow-sm hover:bg-primary-50 transition-all duration-200;
}

/* Common card styles */
.card {
    @apply bg-white rounded-2xl shadow-xl ring-1 ring-gray-200 p-8;
}

.card-hover {
    @apply transition-all duration-300;
}

.card-hover:hover {
    @apply transform -translate-y-2 shadow-2xl;
}

/* Common text styles */
.heading-primary {
    @apply text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl lg:text-7xl;
}

.heading-secondary {
    @apply text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl;
}

.heading-tertiary {
    @apply text-2xl font-bold text-gray-900 sm:text-3xl;
}

.text-body {
    @apply text-lg leading-8 text-gray-600;
}

.text-body-sm {
    @apply text-base leading-7 text-gray-600;
}

/* Loading states */
.loading {
    @apply animate-pulse bg-gray-200 rounded;
}

/* Focus states for accessibility */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2;
}

/* Skip to content for accessibility */
.skip-to-content {
    @apply absolute -top-40 left-6 z-50 bg-primary-600 text-white px-4 py-2 rounded-md text-sm font-medium transition-all duration-200;
}

.skip-to-content:focus {
    @apply top-6;
}