/**
 * MortgageLab.ai Dark Theme for Mortgage Lab Tools - ACCORDION LAYOUT
 * Brand Colors: #A779E6 (primary purple), #00d5ff (accent cyan)
 * Font: Poppins
 * Version: 1.0.0 - Simplified for Mortgage Lab
 */

/* ===========================================
   [C01] BASE THEME CONTAINER
   ============================================ */

.amt-directory {
    background: #0a0b10 !important;
    color: #e8e9f5 !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 40px 20px !important;
    border-radius: 3px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Gradient glow background */
.amt-directory::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at top center, rgba(167, 121, 230, 0.25), transparent 65%) !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

/* Content wrapper so text doesn't sit on the edges */
.amt-directory > * {
    position: relative !important;
    z-index: 1 !important;
}

/* ===========================================
   [C03] DIRECTORY CONTAINER & LIST (Accordion)
   ============================================ */

.amt-directory-list {
    max-width: 1000px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* ===========================================
   [C04] TOOL ROW - Accordion Item
   ============================================ */

.amt-tool-row {
    background: #0e0f14 !important;
    border: 1px solid #3a3a46 !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    position: relative !important;
}

/* Active row (expanded) */
.amt-tool-row.active {
    border-color: #00d5ff !important;
    box-shadow: 0 0 0 1px rgba(0, 213, 255, 0.5), 0 14px 35px rgba(0, 0, 0, 0.7) !important;
}

/* ===========================================
   [C05] ROW HEADER - Clickable accordion trigger
   ============================================ */

.amt-row-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    cursor: pointer !important;
    background: linear-gradient(90deg, rgba(20,21,30,0.95), rgba(12,13,20,0.98)) !important;
    transition: background 0.2s ease !important;
}

.amt-row-header:hover {
    background: linear-gradient(90deg, rgba(28,29,42,0.95), rgba(18,19,28,0.98)) !important;
}

/* Left side: Logo + Info */
.amt-header-main {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* Logo container */
.amt-row-logo {
    width: 44px !important;
    height: 44px !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border: 1px solid #2a2b3d !important;
	padding: 3px;
}

.amt-row-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Info container (title) */
.amt-header-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}

/* Tool title */
.amt-row-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #f5f4ff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ===========================================
   [C06] HEADER META - Right side (chevron)
   ============================================ */

.amt-header-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

/* Toggle icon (chevron) */
.amt-toggle-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 3px !important;
    background: rgba(167, 121, 230, 0.15) !important;
    color: #A779E6 !important;
    transition: all 0.25s ease !important;
}

.amt-toggle-icon svg {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.25s ease !important;
}

/* Rotate chevron when expanded */
.amt-tool-row.active .amt-toggle-icon svg {
    transform: rotate(180deg) !important;
}

.amt-tool-row.active .amt-toggle-icon {
    background: #A779E6 !important;
    color: #0a0b10 !important;
}

/* ===========================================
   [C07] ROW BODY - Accordion content
   ============================================ */

.amt-row-body {
    display: none;
    padding: 0 20px 20px !important;
    background: radial-gradient(circle at top left, rgba(167, 121, 230, 0.1), transparent 50%) !important;
}

.amt-body-inner {
    padding-top: 16px !important;
    border-top: 1px solid #2a2b3d !important;
}

/* Grid wrapper - simplified to single column */
.amt-body-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}

/* ===========================================
   [C08] BODY MAIN - Description & CTA
   ============================================ */

.amt-body-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.amt-tool-description {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #c8cae0 !important;
}

.amt-tool-description p {
    margin: 0 0 10px !important;
}

.amt-tool-description p:last-child {
    margin-bottom: 0 !important;
}

/* CTA area */
.amt-tool-actions {
    margin-top: auto !important;
}

/* Main CTA button */
.amt-cta-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    border-radius: 3px !important;
    background: linear-gradient(90deg, #A779E6, #00d5ff) !important;
    color: #0a0b10 !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}

.amt-cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6) !important;
    filter: brightness(1.08) !important;
    color: #0a0b10 !important;
    text-decoration: none !important;
}

/* ===========================================
   [C11] RESPONSIVENESS
   ============================================ */

@media (max-width: 700px) {
    .amt-row-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .amt-header-meta {
        align-self: stretch !important;
        justify-content: space-between !important;
    }

    .amt-row-title {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .amt-directory {
        padding: 24px 14px !important;
    }

    .amt-row-header {
        padding: 14px 14px !important;
    }

    .amt-row-body {
        padding: 0 14px 16px !important;
    }

    .amt-body-grid {
        gap: 16px !important;
    }

    .amt-cta-button {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ===========================================
   [C12] LOADER & EMPTY STATE
   ============================================ */

.amt-loader {
    text-align: center !important;
    padding: 30px 0 !important;
    color: #b8bbd9 !important;
    font-size: 14px !important;
}

.amt-empty-state {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #9da2c4 !important;
    font-size: 14px !important;
}
