/* MorningNewsletter - Main Styles */

/* Global Styles */
html {
    scroll-behavior: smooth;
}

/* Logo Styles */
.logo-icon {
    height: 1.05rem !important;
    width: auto;
    margin-bottom: -1px;
}

.logo-sun-rotated {
    /* Animation can be added here if needed */
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #0041EC 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mesh-bg {
    background: radial-gradient(circle at 25% 25%, #e0e7ff 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, #f3e8ff 0%, transparent 50%),
                radial-gradient(circle at 25% 75%, #dbeafe 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, #fce7f3 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, #f8fafc 0%, transparent 50%);
}

/* Trusted by logos */
.trusted-by-logos {
    filter: grayscale(100%) brightness(0.3);
    transition: filter 0.3s ease;
}

.trusted-by-logos:hover {
    filter: grayscale(100%) brightness(0.5);
}

/* Navigation */
.nav-scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* FAQ Styles */
.faq-answer {
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Button Transitions */
.btn-transition {
    transition: all 0.3s ease;
}

.btn-transition:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Newsletter Subscription */
.newsletter-form {
    max-width: 100%;
}

.newsletter-input {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

/* Responsive Design Utilities */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
        gap: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.scale-hover {
    transition: transform 0.2s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* Icon Transitions */
.icon-transition {
    transition: transform 0.2s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .auto-dark .text-gray-900 {
        color: #f9fafb;
    }
    
    .auto-dark .text-gray-600 {
        color: #d1d5db;
    }
    
    .auto-dark .bg-white {
        background-color: #374151;
    }
}