/**
 * AI Legislative Assistant Guide Styles
 * Comprehensive styling for the help guide modal
 */

/* ==================== GUIDE MODAL ==================== */
.ai-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ai-guide-modal.active {
    opacity: 1;
    visibility: visible;
}

.ai-guide-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.ai-guide-modal.active .ai-guide-modal-content {
    transform: translateY(0) scale(1);
}

/* ==================== CLOSE BUTTON ==================== */
.ai-guide-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ai-guide-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* ==================== LANGUAGE SELECTOR ==================== */
.ai-guide-lang-selector {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 20px 20px 0 0;
}

.guide-lang-btn {
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.guide-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.guide-lang-btn.active {
    background: white;
    color: #1e3a8a;
    border-color: white;
}

/* ==================== GUIDE CONTENT ==================== */
.ai-guide {
    padding: 25px;
}

.ai-guide-header {
    text-align: center;
    margin-bottom: 25px;
}

.ai-guide-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #1e293b;
    font-weight: 700;
}

.ai-guide-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

/* ==================== DISCLAIMER ==================== */
.ai-guide-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 25px;
}

.disclaimer-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.disclaimer-text {
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

/* ==================== QUICK START ==================== */
.ai-guide-quickstart {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 25px;
}

.ai-guide-quickstart h3 {
    margin: 0 0 12px 0;
    color: #065f46;
    font-size: 18px;
}

.ai-guide-quickstart ol {
    margin: 0;
    padding-left: 20px;
    color: #047857;
}

.ai-guide-quickstart li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ==================== SECTIONS ==================== */
.ai-guide-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.ai-guide-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s ease;
}

.ai-guide-section:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.ai-guide-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1e293b;
}

.section-desc {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.section-examples {
    font-size: 13px;
}

.section-examples strong {
    color: #475569;
    display: block;
    margin-bottom: 8px;
}

.section-examples ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.example-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-style: italic;
}

.example-item:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-color: transparent;
    transform: translateX(5px);
}

.example-item:last-child {
    margin-bottom: 0;
}

/* ==================== TIPS ==================== */
.ai-guide-tips {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 18px 20px;
}

.ai-guide-tips h3 {
    margin: 0 0 12px 0;
    color: #1e40af;
    font-size: 18px;
}

.ai-guide-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #1e40af;
}

.ai-guide-tips li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.ai-guide-tips li:last-child {
    margin-bottom: 0;
}

/* ==================== HELP BUTTON FOR CHAT ==================== */
.ai-help-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-help-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.ai-help-btn svg {
    fill: white;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .ai-guide-modal {
        padding: 10px;
    }

    .ai-guide-modal-content {
        max-height: 90vh;
        border-radius: 16px;
    }

    .ai-guide-lang-selector {
        padding: 15px;
        border-radius: 16px 16px 0 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .guide-lang-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    .ai-guide {
        padding: 18px;
    }

    .ai-guide-header h2 {
        font-size: 22px;
    }

    .ai-guide-sections {
        grid-template-columns: 1fr;
    }

    .ai-guide-close {
        top: 10px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ai-guide-header h2 {
        font-size: 20px;
    }

    .ai-guide-subtitle {
        font-size: 14px;
    }

    .ai-guide-section {
        padding: 14px;
    }

    .example-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}
