/* animated-dividers.css — Prompt Minds
   Animated section dividers between page sections.
   These provide subtle visual separation with animated effects. */

/* Animated gradient line divider */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
    background-size: 200% 100%;
    animation: dividerFlow 4s linear infinite;
    margin: 0;
    border: none;
}

@keyframes dividerFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Glowing dot divider */
.dot-divider {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 30px 0;
}

.dot-divider span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: dotPulse 2s ease-in-out infinite;
}

.dot-divider span:nth-child(2) {
    animation-delay: 0.3s;
    background: var(--color-secondary);
}

.dot-divider span:nth-child(3) {
    animation-delay: 0.6s;
    background: var(--color-accent);
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Wave divider SVG section */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 40px;
}

/* Fix alignment issues: Center tool header descriptions and upload area texts */
.tool-header p,
.upload-area p,
.upload-content p {
    text-align: center !important;
}


/* Responsive Chatbot Placement Fix: Reposition chatbot button to the header on mobile devices */
@media (max-width: 768px) {
    /*
     * Equal-spacing layout for 3 header icons: [Moon] [Robot] [Hamburger]
     * Each button is 42px wide. Gap between each = 12px.
     * Hamburger: right: 15px (header padding) -> left edge at 57px from screen right
     * Chatbot  : right: 69px -> left edge at 111px from screen right
     * Theme    : right edge at 123px -> header-right margin-right = 123 - 15(padding) = 108px
     */
    .mobile-menu-toggle {
        order: 100 !important;
        flex-shrink: 0 !important;
    }
    
    .header-right {
        gap: 0 !important;
        margin-right: 108px !important;
    }
    
    #chatbot-toggle {
        position: fixed !important;
        top: 15px !important;
        bottom: auto !important;
        right: 69px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1.1rem !important;
        z-index: 10000 !important;
        background: var(--bg-tertiary, #1a1a2e) !important;
        border: 1px solid var(--border-color, #3a476a) !important;
        color: var(--text-primary, #ffffff) !important;
        box-shadow: none !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #chatbot-toggle:hover {
        background: var(--primary-blue, #1b98e0) !important;
        border-color: var(--primary-blue, #1b98e0) !important;
        color: #fff !important;
    }
    
    #chatbot-container {
        position: fixed !important;
        top: 75px !important;
        bottom: auto !important;
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        max-width: none !important;
        height: 60vh !important;
        max-height: 400px !important;
        z-index: 10000 !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    }
}

@media (max-width: 480px) {
    /*
     * Equal-spacing on small phones. Each button 38px wide. Gap = 10px.
     * Hamburger: right: 12px -> left edge at 50px
     * Chatbot  : right: 60px -> left edge at 98px
     * Theme    : right edge at 108px -> header-right margin-right = 108 - 12 = 96px
     */
    .header-right {
        margin-right: 96px !important;
    }

    #chatbot-toggle {
        top: 13px !important;
        right: 60px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
    
    #chatbot-container {
        top: 68px !important;
        right: 10px !important;
        left: 10px !important;
        height: 55vh !important;
    }
}
