/* CloudMail - Shared Styles */

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}
.gradient-bg-light {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}
@keyframes float-reverse {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(10px); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes envelope-fly {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-150px, -100px) rotate(-10deg); opacity: 0; }
}

/* Animation classes */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-float-reverse { animation: float-reverse 7s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 3s ease-in-out infinite; }
.animate-slide-in { animation: slide-in-right 0.8s ease-out forwards; }
.animate-fade-up {
    animation: fade-in-up 0.6s ease-out both;
    opacity: 0;
}

/* Animation delays */
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-3000 { animation-delay: 3s; }

/* Sticky sub-navigation for features page */
.subnav-sticky {
    position: sticky;
    top: 64px;
    z-index: 40;
}
/* Thin scrollbar on mobile for subnav */
.subnav-sticky ::-webkit-scrollbar {
    height: 2px;
}
.subnav-sticky ::-webkit-scrollbar-track {
    background: transparent;
}
.subnav-sticky ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* FAQ accordion */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.faq-answer.open {
    grid-template-rows: 1fr;
}
.faq-answer > div {
    overflow: hidden;
}
.faq-chevron {
    transition: transform 0.3s ease;
}
.faq-chevron.open {
    transform: rotate(180deg);
}

/* Timeline for changelog */
.timeline-line {
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #93c5fd);
}
@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}
