/* card-system.css — Prompt Minds
   Enhanced card system styles & overrides.
   Core card styles (.feature-card, .flip-card, .card-grid) are in css/style.css.
   This file exists for supplementary card customizations. */

/* Feature Card Highlight Variant */
.feature-card--highlight {
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.1), rgba(155, 89, 182, 0.1));
    border-color: var(--color-primary);
}

.feature-card--highlight:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 10px 40px rgba(27, 152, 224, 0.2);
}

/* Card hover glow effect */
.feature-card {
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

/* Card icon pulse on hover */
.feature-card:hover .icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 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;
    }
}
