/**
 * Steve Help Buttons - Styling
 * Page-specific contextual help buttons for AI Steve
 */

/* Section Container */
.steve-help-section {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f1 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.steve-help-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 155, 77, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.steve-help-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 155, 77, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Header */
.steve-help-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.steve-help-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #009B4D 0%, #00c853 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 155, 77, 0.3);
}

.steve-help-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.steve-help-titles {
    text-align: left;
}

.steve-help-titles h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.steve-help-titles p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Buttons Grid */
.steve-help-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Individual Button */
.steve-help-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.steve-help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 155, 77, 0.05), transparent);
    transition: left 0.5s ease;
}

.steve-help-btn:hover::before {
    left: 100%;
}

.steve-help-btn:hover {
    border-color: #009B4D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 155, 77, 0.15);
}

.steve-help-btn:active {
    transform: translateY(0);
}

/* Button Icon */
.steve-help-btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #e8f5f1 0%, #d4ede5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.steve-help-btn-icon i {
    font-size: 1.1rem;
    color: #009B4D;
    transition: all 0.3s ease;
}

.steve-help-btn:hover .steve-help-btn-icon {
    background: linear-gradient(135deg, #009B4D 0%, #00c853 100%);
}

.steve-help-btn:hover .steve-help-btn-icon i {
    color: #ffffff;
}

/* Button Text */
.steve-help-btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.steve-help-btn-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

.steve-help-btn-sublabel {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.2;
}

/* Button Arrow */
.steve-help-btn-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.steve-help-btn-arrow i {
    font-size: 0.7rem;
    color: #999;
    transition: all 0.3s ease;
}

.steve-help-btn:hover .steve-help-btn-arrow {
    background: #009B4D;
    transform: translateX(3px);
}

.steve-help-btn:hover .steve-help-btn-arrow i {
    color: #ffffff;
}

/* Footer */
.steve-help-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #009B4D;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.steve-help-footer i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .steve-help-section {
        padding: 2rem 0;
    }

    .steve-help-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .steve-help-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .steve-help-icon i {
        font-size: 1.5rem;
    }

    .steve-help-titles {
        text-align: center;
    }

    .steve-help-titles h2 {
        font-size: 1.35rem;
    }

    .steve-help-titles p {
        font-size: 0.9rem;
    }

    .steve-help-buttons-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .steve-help-btn {
        padding: 0.875rem 1rem;
    }

    .steve-help-btn-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .steve-help-btn-icon i {
        font-size: 1rem;
    }

    .steve-help-btn-label {
        font-size: 0.9rem;
    }

    .steve-help-btn-sublabel {
        font-size: 0.75rem;
    }

    .steve-help-footer {
        font-size: 0.85rem;
        margin-top: 1.25rem;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .steve-help-btn {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .steve-help-btn-arrow {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .steve-help-section {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .steve-help-titles h2 {
        color: #ffffff;
    }

    .steve-help-titles p {
        color: #aaa;
    }

    .steve-help-btn {
        background: #242442;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .steve-help-btn:hover {
        box-shadow: 0 6px 20px rgba(0, 155, 77, 0.25);
    }

    .steve-help-btn-icon {
        background: linear-gradient(135deg, #2a3a4a 0%, #1e2e3e 100%);
    }

    .steve-help-btn-label {
        color: #ffffff;
    }

    .steve-help-btn-sublabel {
        color: #888;
    }

    .steve-help-btn-arrow {
        background: #333355;
    }

    .steve-help-btn-arrow i {
        color: #666;
    }
}

/* Animation for new buttons appearing */
.steve-help-btn {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.steve-help-btn:nth-child(1) { animation-delay: 0.05s; }
.steve-help-btn:nth-child(2) { animation-delay: 0.1s; }
.steve-help-btn:nth-child(3) { animation-delay: 0.15s; }
.steve-help-btn:nth-child(4) { animation-delay: 0.2s; }
.steve-help-btn:nth-child(5) { animation-delay: 0.25s; }
.steve-help-btn:nth-child(6) { animation-delay: 0.3s; }

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

/* Pulse effect for the robot icon */
.steve-help-footer i {
    display: inline-block;
}

.steve-help-faq-list {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.steve-help-faq-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    overflow: hidden;
}

.steve-help-faq-summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.steve-help-faq-summary::-webkit-details-marker {
    display: none;
}

.steve-help-faq-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
}

.steve-help-faq-chevron {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steve-help-faq-chevron i {
    font-size: 0.7rem;
    color: #999;
    transition: transform 0.2s ease;
}

.steve-help-faq-item[open] {
    border-color: #009B4D;
}

.steve-help-faq-item[open] .steve-help-faq-chevron i {
    transform: rotate(180deg);
}

.steve-help-faq-answer {
    padding: 0 1.25rem 1rem 1.25rem;
    color: #444;
}

.steve-help-faq-answer p {
    margin: 0.5rem 0;
}

.steve-help-faq-actions {
    margin-top: 0.75rem;
}

.steve-help-ask-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #009B4D 0%, #00c853 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 155, 77, 0.25);
}

.steve-help-ask-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 155, 77, 0.3);
}

.steve-help-ask-btn:focus-visible {
    outline: 2px solid #009B4D;
    outline-offset: 2px;
}

/* Focus states for accessibility */
.steve-help-btn:focus {
    outline: none;
    border-color: #009B4D;
    box-shadow: 0 0 0 3px rgba(0, 155, 77, 0.2);
}

.steve-help-btn:focus-visible {
    outline: 2px solid #009B4D;
    outline-offset: 2px;
}
