/* General styles */
.ai-tool-single-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Header container */
.ai-tool-header-container {
    background-color: #FBFBFB;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}
[data-theme="dark"] .ai-tool-header-container {
    background-color: var(--vt-card) !important;
    border: 1px solid var(--vt-border) !important;
}

/* Content container */
.ai-tool-content-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin: 0 auto;
}

/* Header styles */
.ai-tool-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ai-tool-header-left {
    flex: 1 1 60%;
    min-width: 300px;
}

.ai-tool-header-right {
    flex: 1 1 35%;
    min-width: 250px;
}

.ai-tool-logo-title-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ai-tool-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-right: 20px;
    object-fit: cover;
}

.ai-tool-title-info {
    display: flex;
    flex-direction: column;
}

.ai-tool-title {
    font-size: 28px;
    margin: 0 0 5px 0;
    color: #7C4DFF;
}

.ai-tool-type-wrapper {
    display: flex;
    align-items: center;
}

.ai-tool-type-label {
    font-weight: bold;
    margin-right: 5px;
}

.ai-tool-type {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ai-tool-type:hover {
    color: #7C4DFF;
}

.ai-tool-verified {
    display: inline-flex;
    align-items: center;
    color: #49ADFF;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

.ai-tool-verified svg {
    margin-right: 5px;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: normal;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.ai-tool-excerpt {
    max-width: 100%;
    margin-bottom: 20px;
}

.ai-tool-featured-image {
    width: 100%;
    margin-bottom: 20px;
}

.ai-tool-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.ai-tool-website-button-wrapper {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.ai-tool-website-button {
    display: inline-block;
    background-color: #7C4DFF;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.ai-tool-website-button:hover {
    background-color: #6039c8;
}

[data-theme="dark"] .ai-tool-website-button {
    background-color: var(--vt-primary) !important;
    color: #050608 !important;
}
[data-theme="dark"] .ai-tool-website-button:hover {
    background-color: var(--vt-primary-dark) !important;
    color: #050608 !important;
}

.ai-tool-affiliate-link {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}
[data-theme="dark"] .ai-tool-affiliate-link {
    color: var(--vt-muted) !important;
}

.ai-tool-meta {
    margin-top: 20px;
}

.ai-tool-categories,
.ai-tool-tags,
.ai-tool-pricing {
    margin-bottom: 10px;
}

.ai-tool-category,
.ai-tool-tag {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
[data-theme="dark"] .ai-tool-type,
[data-theme="dark"] .ai-tool-category,
[data-theme="dark"] .ai-tool-tag {
    color: var(--vt-muted) !important;
}

.ai-tool-category:hover,
.ai-tool-tag:hover {
    color: #7C4DFF;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ai-tool-header {
        flex-direction: column;
    }

    .ai-tool-header-left,
    .ai-tool-header-right {
        width: 100%;
    }

    .ai-tool-header-right {
        order: 2;
    }

    .ai-tool-meta {
        order: 3;
    }

    .ai-tool-website-button-wrapper {
        order: 4;
    }
}


/* ─────────────────────────────────────────────────────────────────────────────
   FEATURES GRID & FAQ — Extracted from inline <script> HTML widget
   These styles were previously injected via document.createElement('style').
   Now loaded as a proper stylesheet so they apply in all browsers/caches.
───────────────────────────────────────────────────────────────────────────── */

.vt-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .vt-features-grid { grid-template-columns: 1fr; }
}

.vt-feat-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.vt-feat-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 16px rgba(108, 93, 211, .1);
}

.vt-feat-card.vt-feat-accent {
    background: linear-gradient(135deg, rgba(237, 233, 254, .5), rgba(248, 250, 252, .8));
    border-color: rgba(108, 93, 211, .2);
}

.vt-feat-card h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin: 0 0 8px !important;
    font-family: inherit !important;
}

.vt-feat-card p {
    font-size: 13px !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-family: inherit !important;
}

.vt-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vt-faq-item {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.vt-faq-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.vt-faq-item.open  { border-color: rgba(108, 93, 211, .35); }

.vt-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    background: rgba(248, 250, 252, .7);
    transition: background .2s;
    user-select: none;
}

.vt-faq-q:hover { background: #F8FAFC; }

.vt-faq-item.open .vt-faq-q {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
}

.vt-faq-qtitle {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    flex: 1;
    line-height: 1.4;
    font-family: inherit;
}

.vt-faq-item.open .vt-faq-qtitle { color: #6C5DD3; }

.vt-faq-icon {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-size: 22px;
    color: #94A3B8;
    flex-shrink: 0;
    transition: transform .3s, color .2s;
    font-weight: 400;
    font-style: normal;
}

.vt-faq-item.open .vt-faq-icon { transform: rotate(45deg); color: #6C5DD3; }

.vt-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .3s ease;
    padding: 0 20px;
}

.vt-faq-item.open .vt-faq-answer { max-height: 600px; padding: 16px 20px 20px; }

.vt-faq-answer p {
    font-size: 14px !important;
    color: #64748B !important;
    line-height: 1.75 !important;
    margin: 0 !important;
    font-family: inherit !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   DARK MODE — Features cards & FAQ
   Task 9: Fix gradient/background so cards look good in dark mode.
───────────────────────────────────────────────────────────────────────────── */

[data-theme="dark"] .vt-feat-card {
    background: var(--vt-card) !important;
    border-color: var(--vt-border) !important;
}

[data-theme="dark"] .vt-feat-card:hover {
    border-color: var(--vt-primary) !important;
    box-shadow: 0 4px 16px hsla(145, 80%, 50%, 0.15) !important;
}

[data-theme="dark"] .vt-feat-card.vt-feat-accent {
    background: linear-gradient(135deg, hsla(145, 80%, 50%, 0.07), hsla(240, 12%, 12%, 0.9)) !important;
    border-color: hsla(145, 80%, 50%, 0.2) !important;
}

[data-theme="dark"] .vt-feat-card h3 {
    color: var(--vt-fg) !important;
}

[data-theme="dark"] .vt-feat-card p {
    color: var(--vt-muted) !important;
}

[data-theme="dark"] .vt-faq-item {
    background: var(--vt-card) !important;
    border-color: var(--vt-border) !important;
}

[data-theme="dark"] .vt-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3) !important;
}

[data-theme="dark"] .vt-faq-item.open {
    border-color: hsla(145, 80%, 50%, 0.35) !important;
}

[data-theme="dark"] .vt-faq-q {
    background: rgba(255, 255, 255, .03) !important;
}

[data-theme="dark"] .vt-faq-q:hover {
    background: rgba(255, 255, 255, .06) !important;
}

[data-theme="dark"] .vt-faq-item.open .vt-faq-q {
    background: var(--vt-card) !important;
    border-bottom-color: var(--vt-border) !important;
}

[data-theme="dark"] .vt-faq-qtitle {
    color: var(--vt-fg) !important;
}

[data-theme="dark"] .vt-faq-item.open .vt-faq-qtitle {
    color: var(--vt-fg) !important;
}

[data-theme="dark"] .vt-faq-icon {
    color: var(--vt-muted) !important;
}

[data-theme="dark"] .vt-faq-item.open .vt-faq-icon {
    color: var(--vt-primary) !important;
}

[data-theme="dark"] .vt-faq-answer p {
    color: var(--vt-muted) !important;
}