/* Custom styles for CreArt website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation styles */
.nav-link {
    @apply text-gray-700 hover:text-creart-orange transition duration-300 font-medium;
}

.mobile-nav-link {
    @apply block px-3 py-2 text-base font-medium text-gray-700 hover:text-creart-orange hover:bg-gray-50 transition duration-300;
}

/* Active navigation link */
.nav-link.active {
    @apply text-creart-orange;
}

/* Filter knapper - eksklusivt look */
.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background: #18181b;
    color: #ea580c;
    border: 2px solid #ea580c;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    margin: 0 0.25rem;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    outline: none;
    cursor: pointer;
}
.filter-btn:hover {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
    box-shadow: 0 4px 16px 0 rgba(234,88,12,0.15);
}
.filter-btn.active {
    background: #ea580c !important;
    color: #fff !important;
    border-color: #ea580c !important;
    box-shadow: 0 4px 16px 0 rgba(234,88,12,0.25);
}

/* Gallery item hover effects */
.gallery-item {
    @apply relative overflow-hidden rounded-lg shadow-lg transition duration-300 transform hover:scale-105;
}

.gallery-item img {
    @apply w-full h-64 object-cover transition duration-300;
}

.gallery-item:hover img {
    @apply transform scale-110;
}

.gallery-overlay {
    @apply absolute inset-0 bg-black bg-opacity-0 hover:bg-opacity-50 transition duration-300 flex items-center justify-center;
}

.gallery-overlay i {
    @apply text-white text-3xl opacity-0 hover:opacity-100 transition duration-300;
}

/* FAQ accordion styles */
.faq-item {
    @apply bg-white rounded-lg shadow-md overflow-hidden;
}

.faq-question {
    @apply w-full px-6 py-4 text-left bg-white hover:bg-gray-50 transition duration-300 cursor-pointer flex justify-between items-center;
}

.faq-answer {
    @apply px-6 py-0 max-h-0 overflow-hidden transition-all duration-300 ease-in-out;
}

.faq-answer.active {
    @apply py-4 max-h-96;
}

.faq-icon {
    @apply text-creart-orange transition-transform duration-300;
}

.faq-icon.active {
    @apply transform rotate-180;
}

/* Form focus states */
input:focus, textarea:focus {
    @apply outline-none ring-2 ring-creart-orange border-transparent;
}

/* Button hover effects */
.btn-primary {
    @apply bg-creart-orange hover:bg-orange-600 text-white px-6 py-3 rounded-lg font-semibold transition duration-300 transform hover:scale-105;
}

.btn-secondary {
    @apply border-2 border-creart-blue text-creart-blue hover:bg-creart-blue hover:text-white px-6 py-3 rounded-lg font-semibold transition duration-300;
}

/* Loading animation */
.loading {
    @apply animate-spin rounded-full h-6 w-6 border-b-2 border-creart-orange;
}

/* Success/Error messages */
.message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translate(-50%, -20px) scale(0.95);
    z-index: 9999;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 28rem;
    margin: 0 1rem;
    text-align: center;
    font-weight: bold;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.message.success {
    background-color: #ea580c;
    color: white;
    border: 4px solid #b87333;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.3);
}

.message.error {
    background-color: #991b1b;
    color: #fecaca;
    border: 4px solid #b91c1c;
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        @apply text-3xl;
    }
    h2 {
        @apply text-2xl;
    }
    h3 {
        @apply text-xl;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Upload area styles */
.upload-area {
    @apply border-2 border-dashed border-creart-orange rounded-lg p-8 text-center transition duration-300;
}

.upload-area:hover {
    @apply border-creart-blue bg-gray-50;
}

.upload-area.dragover {
    @apply border-creart-blue bg-creart-natural;
}

/* Lightbox styles */
.lightbox-open {
    @apply overflow-hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-creart-orange rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-orange-600;
}

/* Print styles */
@media print {
    nav, footer, .btn, .upload-area {
        display: none !important;
    }
    
    body {
        @apply text-black bg-white;
    }
    
    section {
        @apply py-8;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-700 {
        @apply text-black;
    }
    
    .text-gray-600 {
        @apply text-black;
    }
    
    .bg-gray-50 {
        @apply bg-white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-bounce {
        animation: none !important;
    }
} 