/**
 * Dark Mode Styles for AMLC Website
 * Provides smooth transitions and custom dark mode styling
 */

/* Smooth transitions for theme switching */
body,
nav,
.bg-white,
.bg-gray-50,
.bg-gray-100,
section,
div {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode toggle button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #e5e7eb;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
}

.dark .theme-toggle {
    background-color: #4b5563;
}

.theme-toggle:hover {
    background-color: #d1d5db;
}

.dark .theme-toggle:hover {
    background-color: #6b7280;
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .theme-toggle-slider {
    transform: translateX(30px);
    background-color: #1f2937;
}

/* Hero section dark mode */
.dark .hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://res.cloudinary.com/dvjbdxcdv/image/upload/v1763899751/ackley_mountain_aeem9d.png');
}

/* Card hover effects in dark mode */
.dark .hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Link colors in dark mode */
.dark a:not(.bg-blue-600):not(.bg-purple-600) {
    color: #93c5fd;
}

.dark a:not(.bg-blue-600):not(.bg-purple-600):hover {
    color: #60a5fa;
}

/* Form inputs in dark mode */
.dark input[type="email"],
.dark input[type="text"],
.dark textarea {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.dark input[type="email"]:focus,
.dark input[type="text"]:focus,
.dark textarea:focus {
    border-color: #60a5fa;
    ring-color: #60a5fa;
}

.dark input[type="email"]::placeholder,
.dark input[type="text"]::placeholder,
.dark textarea::placeholder {
    color: #9ca3af;
}

/* Button adjustments for dark mode */
.dark .bg-blue-600 {
    background-color: #2563eb;
}

.dark .bg-blue-600:hover {
    background-color: #1d4ed8;
}

.dark .bg-purple-600 {
    background-color: #7c3aed;
}

.dark .bg-purple-600:hover {
    background-color: #6d28d9;
}

/* Code blocks in dark mode (if any) */
.dark code,
.dark pre {
    background-color: #1f2937;
    color: #e5e7eb;
}

/* Scrollbar styling for dark mode */
.dark ::-webkit-scrollbar {
    width: 12px;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 6px;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Selection color in dark mode */
.dark ::selection {
    background-color: #3b82f6;
    color: white;
}

