/* assets/css/pages/ai-desc.css */

:root {
    --aid-bg: #0f172a;
    --aid-card: rgba(30, 41, 59, 0.7);
    --aid-border: rgba(255, 255, 255, 0.08);
    --aid-primary: #10b981;
    --aid-primary-hover: #059669;
}

body {
    background-color: var(--aid-bg);
}

.aid-wrapper {
    padding: 120px 0 80px;
    min-height: 80vh;
    background-image: radial-gradient(circle at top center, rgba(16, 185, 129, 0.1), transparent 50%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.05), transparent 50%);
}

.aid-header {
    text-align: center;
    margin-bottom: 50px;
}

.badge-premium {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.aid-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.aid-title span {
    background: linear-gradient(135deg, #34d399, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aid-desc {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.aid-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .aid-grid {
        grid-template-columns: 1fr;
    }

    .aid-title {
        font-size: 2.4rem;
    }

    .aid-wrapper {
        padding: 90px 0 50px;
    }
}

.aid-card {
    background: var(--aid-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--aid-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* INPUTS */
.aid-label {
    display: block;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.aid-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 14px 18px;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.aid-input option {
    background-color: #1e293b;
    color: #fff;
}

.aid-input:focus {
    border-color: var(--aid-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.req {
    color: #ef4444;
}

.btn-generate {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-generate:disabled {
    background: #475569;
    pointer-events: none;
    box-shadow: none;
}

.aid-alert {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* RESULTS / CHATGPT STYLE */
.result-card {
    padding: 0;
    overflow: hidden;
}

.rc-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
}

.ai-avatar img {
    width: 100%;
    height: auto;
}

.rc-body {
    padding: 30px;
    flex-grow: 1;
    max-height: 500px;
    overflow-y: auto;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
}

.rc-body::-webkit-scrollbar {
    width: 6px;
}

.rc-body::-webkit-scrollbar-track {
    background: transparent;
}

.rc-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.empty-state {
    text-align: center;
    color: #64748b;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* AI Generated Content Styling */
.ai-content h2 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.ai-content h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 25px 0 10px 0;
}

.ai-content p {
    margin-bottom: 15px;
}

.ai-content ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.ai-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.ai-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--aid-primary);
    font-weight: bold;
}

.rc-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-btn.copied {
    background: var(--aid-primary);
    border-color: var(--aid-primary);
}

/* CTA Block */
.aid-cta {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.8), rgba(0, 0, 0, 0.5));
    border: 1px solid var(--aid-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.acta-content h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.acta-content p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
}

.btn-premium {
    display: inline-block;
    background: var(--aid-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-premium:hover {
    background: var(--aid-primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 768px) {
    .aid-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .acta-content p {
        max-width: 100%;
    }
}