/* Custom styles for ItkaneCC */

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

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

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

/* Button styles */
.btn-primary {
    @apply bg-primary text-white px-6 py-3 rounded-lg font-semibold hover:bg-primary/90 transition-colors;
}

.btn-secondary {
    @apply bg-secondary text-white px-6 py-3 rounded-lg font-semibold hover:bg-secondary/90 transition-colors;
}

.btn-accent {
    @apply bg-accent text-white px-6 py-3 rounded-lg font-semibold hover:bg-accent/90 transition-colors;
}

.btn-outline {
    @apply border-2 border-primary text-primary px-6 py-3 rounded-lg font-semibold hover:bg-primary hover:text-white transition-colors;
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent transition-colors;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

/* Badge styles */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-primary {
    @apply bg-primary/10 text-primary;
}

.badge-success {
    @apply bg-success/10 text-success;
}

.badge-warning {
    @apply bg-warning/10 text-warning;
}

.badge-error {
    @apply bg-error/10 text-error;
}

/* Navigation styles */
.nav-link {
    @apply text-gray-700 hover:text-primary transition-colors relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero section animations */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

/* Activity card animations */
.activity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.activity-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial styles */
.testimonial-card {
    @apply bg-white rounded-xl p-8 shadow-lg hover:shadow-xl transition-shadow;
}

.testimonial-quote {
    @apply text-gray-700 italic mb-6 relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: #2563eb;
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.2;
}

/* Project card styles */
.project-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden hover:shadow-xl transition-shadow;
}

.project-image {
    @apply h-48 bg-gray-200 relative overflow-hidden;
}

.project-image img {
    @apply w-full h-full object-cover transition-transform duration-300;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Blog card styles */
.blog-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden hover:shadow-xl transition-shadow;
}

.blog-meta {
    @apply flex items-center justify-between text-sm text-gray-500 mb-2;
}

.blog-category {
    @apply text-primary font-medium;
}

.blog-date {
    @apply text-gray-500;
}

/* Admin dashboard styles */
.dashboard-card {
    @apply bg-white rounded-xl shadow-lg p-6;
}

.dashboard-stat {
    @apply text-3xl font-bold text-gray-900;
}

.dashboard-label {
    @apply text-sm text-gray-600 uppercase tracking-wide;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card, .shadow-lg, .shadow-xl {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

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

/* Focus styles for better accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #f8f9fa !important;
    }
    
    .text-gray-600 {
        color: #495057 !important;
    }
    
    .border-gray-200 {
        border-color: #dee2e6 !important;
    }
}

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