/* AI Legal Opinion — Dark Purple/Slate theme (#e55a1b → #ff6725 → #ff8f5c) */

.al-search-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    padding: 32px 28px 22px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}
.al-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.al-search-hero-decoration::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.al-search-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.al-search-hero-badge i { margin-right: 5px; }
.al-search-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.al-search-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}
.al-search-hero-desc a {
    color: #ffd4c2;
    text-decoration: underline;
    font-weight: 500;
}
.al-search-hero-desc a:hover { color: #fff; text-decoration: none; }
.al-search-hero + .al-search-card { border-radius: 0 0 20px 20px !important; }
.al-search-card { padding: 24px; }

/* Disclaimer banner */
.al-disclaimer-banner {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #5d4037;
}
.al-disclaimer-banner i {
    color: #e65100;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Textarea styling */
.al-textarea {
    width: 100%;
    min-height: 140px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    caret-color: #FF6725;
}
.al-textarea:focus {
    outline: none;
    border-color: #ff8f5c;
    box-shadow: 0 0 0 3px rgba(81,45,168,0.1);
    background: #fff;
}
.al-textarea::placeholder {
    color: #aaa;
}
.al-char-counter {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}
.al-char-counter.al-char-warn { color: #e65100; }
.al-char-counter.al-char-ok { color: #ff6725; }

/* AI Thinking animation */
.al-thinking-area {
    text-align: center;
    padding: 40px 20px;
}
.al-thinking-dots {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 20px;
}
.al-thinking-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff8f5c;
    animation: al-bounce 1.4s infinite ease-in-out both;
}
.al-thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.al-thinking-dots span:nth-child(2) { animation-delay: -0.16s; }
.al-thinking-dots span:nth-child(3) { animation-delay: 0s; }
@keyframes al-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
.al-thinking-text {
    font-size: 15px;
    color: #555;
    margin: 0 0 6px;
}
.al-thinking-sub {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Result card */
.al-result-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}
.al-result-header {
    background: linear-gradient(135deg, #fff3ed 0%, #fff3ed 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.al-result-section {
    margin-bottom: 24px;
}
.al-result-section h6 {
    font-size: 14px;
    font-weight: 700;
    color: #ff6725;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff3ed;
}
.al-result-section p,
.al-result-section li {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.al-result-section ul {
    padding-left: 20px;
    margin: 0;
}
.al-result-section ul li {
    margin-bottom: 6px;
}
.al-law-tag {
    display: inline-block;
    background: #fff3ed;
    color: #ff6725;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    margin: 0 6px 6px 0;
    border: 1px solid #d1c4e9;
}
.al-recommendation-item {
    padding: 12px 16px;
    background: #fff3ed;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e55a1b;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.al-recommendation-item i {
    color: #ff6725;
    margin-top: 3px;
    flex-shrink: 0;
}
.al-disclaimer-box {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #5d4037;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.al-disclaimer-box i {
    color: #e55a1b;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Results actions */
.al-results-actions .btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Info cards section */
.al-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e8e8e8;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.al-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49,27,146,0.08);
}
.al-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #e55a1b;
    margin-bottom: 12px;
}
.al-info-card p,
.al-info-card li {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
.al-info-card ul {
    padding-left: 18px;
    margin: 0;
}
.al-info-card ul li {
    margin-bottom: 6px;
}
.al-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff3ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ff8f5c;
    margin-bottom: 14px;
}

/* FAQ */
.al-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.al-faq-item.open { border-color: #ff8f5c; }
.al-faq-question {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    background: #fafafa;
}
.al-faq-question i { transition: transform 0.3s; color: #ff8f5c; }
.al-faq-item.open .al-faq-question i { transform: rotate(180deg); }
.al-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.al-faq-item.open .al-faq-answer {
    padding: 0 20px 16px;
    max-height: 500px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .al-search-hero-title { font-size: 22px; }
    .al-search-hero { padding: 24px 20px 18px; }
    .al-search-card { padding: 18px; }
    .al-textarea { min-height: 120px; }
    .al-result-card { padding: 20px; }
    .al-disclaimer-banner { font-size: 12px; padding: 12px 14px; }
}

@media (max-width: 576px) {
    .al-search-hero-title { font-size: 20px; }
    .al-result-section h6 { font-size: 13px; }
    .al-law-tag { font-size: 11px; padding: 4px 10px; }
    .al-recommendation-item { font-size: 13px; padding: 10px 12px; }
}

/* Print styles */
@media print {
    .dashboard-side-menu, .dashboard-header, .al-search-hero, .al-search-card,
    .related-tool-card, #tool-article, .al-faq-item, footer, nav, .breadcrumb,
    .al-results-actions, .al-info-card, .al-thinking-area { display: none !important; }
    .al-result-card { box-shadow: none !important; border: 1px solid #ddd; }
    .al-result-card::before {
        content: 'AI Legal Opinion — Source: tg.verified.realestate — ' attr(data-date);
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
    .al-disclaimer-box { border: 1px solid #ccc; }
}
