/**
 * AIToolzDeck Premium Comparison Frontend Styles
 */

:root {
    --atd-comp-navy: #10233f;
    --atd-comp-navy-dark: #091424;
    --atd-comp-teal: #0b8f88;
    --atd-comp-teal-dark: #086b66;
    --atd-comp-teal-light: #e8f7f5;
    --atd-comp-accent: #f59e0b;
    --atd-comp-bg: #f8fafc;
    --atd-comp-card-bg: #ffffff;
    --atd-comp-border: #e2e8f0;
    --atd-comp-border-light: #f1f5f9;
    --atd-comp-text: #1e293b;
    --atd-comp-muted: #64748b;
    --atd-comp-success: #10b981;
    --atd-comp-danger: #ef4444;
    --atd-comp-radius: 12px;
    --atd-comp-radius-sm: 8px;
    --atd-comp-shadow: 0 4px 16px rgba(16, 35, 63, 0.06);
    --atd-comp-shadow-lg: 0 8px 24px rgba(16, 35, 63, 0.10);
}

.atd-comp-single {
    padding-bottom: 60px;
    background-color: var(--atd-comp-bg);
}

/* ==========================================================================
   HERO SECTION & VS CARDS
   ========================================================================== */
.atd-comp-hero {
    text-align: center;
    padding: 36px 0 24px 0;
}

.atd-comp-hero__badge {
    display: inline-block;
    background: var(--atd-comp-teal-light);
    color: var(--atd-comp-teal-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    border: 1px solid rgba(11, 143, 136, 0.2);
}

.atd-comp-hero__title {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    color: var(--atd-comp-navy);
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.atd-comp-hero__subtitle {
    font-size: 17px;
    color: var(--atd-comp-muted);
    max-width: 780px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

/* VS Grid Layout */
.atd-comp-vs-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
}

.atd-comp-vs-card {
    flex: 1;
    min-width: 0;
    background: var(--atd-comp-card-bg);
    border: 1px solid var(--atd-comp-border);
    border-radius: var(--atd-comp-radius);
    overflow: hidden;
    box-shadow: var(--atd-comp-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.atd-comp-vs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--atd-comp-shadow-lg);
}

.atd-comp-vs-card.is-winner-card {
    border-color: var(--atd-comp-teal);
    box-shadow: 0 0 0 2px var(--atd-comp-teal), var(--atd-comp-shadow-lg);
}

.atd-comp-card-winner-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--atd-comp-teal);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.atd-comp-vs-card__img {
    height: 180px;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}

.atd-comp-vs-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atd-comp-vs-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.atd-comp-vs-card__meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.atd-comp-cat-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.atd-comp-price-badge {
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}

.atd-comp-vs-card__body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--atd-comp-navy);
    margin: 0 0 8px 0;
}

.atd-comp-vs-card__excerpt {
    font-size: 14px;
    color: var(--atd-comp-muted);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.atd-comp-vs-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atd-btn-official {
    display: block;
    text-align: center;
    background: var(--atd-comp-teal);
    color: #fff !important;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: var(--atd-comp-radius-sm);
    text-decoration: none;
    transition: background 0.15s ease;
}

.atd-btn-official:hover {
    background: var(--atd-comp-teal-dark);
}

.atd-comp-view-link {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 4px 0;
}

.atd-comp-view-link:hover {
    color: var(--atd-comp-navy);
}

/* VS Divider Badge */
.atd-comp-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
}

.atd-comp-vs-divider span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--atd-comp-navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 3px solid #ffffff;
}

/* ==========================================================================
   QUICK VERDICT BOX
   ========================================================================== */
.atd-comp-verdict-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 6px solid var(--atd-comp-teal);
    border-radius: var(--atd-comp-radius);
    padding: 28px;
    box-shadow: var(--atd-comp-shadow);
    margin: 32px 0;
}

.atd-comp-verdict-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.atd-comp-verdict-tag {
    background: var(--atd-comp-navy);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 4px;
}

.atd-comp-verdict-winner {
    font-size: 16px;
    color: var(--atd-comp-navy);
}

.atd-winner-highlight {
    font-weight: 800;
    color: var(--atd-comp-teal-dark);
}

.atd-winner-reason {
    color: var(--atd-comp-muted);
    font-size: 14px;
}

.atd-comp-verdict-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--atd-comp-text);
    margin: 0 0 20px 0;
}

.atd-comp-quick-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    border-top: 1px solid var(--atd-comp-border-light);
    padding-top: 18px;
}

.atd-comp-quick-pick-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--atd-comp-radius-sm);
    padding: 12px 16px;
}

.atd-pick-tool {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--atd-comp-navy);
    margin-bottom: 3px;
}

.atd-pick-best {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

/* ==========================================================================
   SIDE-BY-SIDE COMPARISON TABLE
   ========================================================================== */
.atd-comp-section {
    margin: 48px 0;
}

.atd-comp-table-container {
    background: #ffffff;
    border: 1px solid var(--atd-comp-border);
    border-radius: var(--atd-comp-radius);
    overflow-x: auto;
    box-shadow: var(--atd-comp-shadow);
}

.atd-comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.atd-comp-table thead th {
    background: #f8fafc;
    padding: 18px 20px;
    border-bottom: 2px solid var(--atd-comp-border);
    font-size: 15px;
    font-weight: 700;
    color: var(--atd-comp-navy);
}

.atd-th-feature {
    width: 28%;
}

.atd-table-tool-header strong {
    display: block;
    font-size: 18px;
    color: var(--atd-comp-navy);
}

.atd-table-tool-price {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    background: #f0fdf4;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 3px;
}

.atd-comp-table tbody tr {
    border-bottom: 1px solid var(--atd-comp-border-light);
    transition: background 0.1s ease;
}

.atd-comp-table tbody tr:hover {
    background: #fbfdff;
}

.atd-comp-table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    color: #334155;
    line-height: 1.5;
}

.atd-row-label strong {
    display: block;
    color: var(--atd-comp-navy);
    font-size: 14px;
}

.atd-row-label small {
    display: block;
    color: var(--atd-comp-muted);
    font-size: 12px;
    margin-top: 2px;
}

.atd-cell-badge {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    color: #475569;
}

.atd-check-yes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #15803d;
    font-weight: 700;
    background: #f0fdf4;
    padding: 4px 8px;
    border-radius: 4px;
}

.atd-check-no {
    color: #94a3b8;
    font-style: italic;
}

.atd-cell-text {
    font-weight: 500;
}

.atd-btn-table {
    display: inline-block;
    background: var(--atd-comp-navy);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.atd-btn-table:hover {
    background: var(--atd-comp-teal);
}

/* ==========================================================================
   PRICING COMPARISON SECTION
   ========================================================================== */
.atd-comp-pricing-analysis {
    background: #f1f5f9;
    border-radius: var(--atd-comp-radius-sm);
    padding: 18px 22px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.atd-comp-pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.atd-comp-pricing-card {
    background: #ffffff;
    border: 1px solid var(--atd-comp-border);
    border-radius: var(--atd-comp-radius);
    padding: 24px;
    box-shadow: var(--atd-comp-shadow);
}

.atd-comp-pricing-card h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: var(--atd-comp-navy);
}

.atd-comp-pricing-model {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.atd-comp-pricing-model strong {
    font-size: 18px;
    color: var(--atd-comp-teal-dark);
}

.atd-comp-pricing-model small {
    font-size: 12px;
    color: #94a3b8;
}

.atd-comp-pricing-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 16px 0;
}

.atd-pricing-check-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--atd-comp-teal);
    text-decoration: none;
}

.atd-pricing-check-link:hover {
    text-decoration: underline;
}

.atd-comp-disclaimer {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

/* ==========================================================================
   WHICH TOOL TO CHOOSE SECTION
   ========================================================================== */
.atd-comp-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.atd-comp-choice-card {
    background: #ffffff;
    border: 2px solid var(--atd-comp-teal-light);
    border-radius: var(--atd-comp-radius);
    padding: 26px;
    box-shadow: var(--atd-comp-shadow);
    display: flex;
    flex-direction: column;
}

.atd-comp-choice-card h3 {
    font-size: 19px;
    color: var(--atd-comp-navy);
    margin: 0 0 16px 0;
}

.atd-comp-choice-card h3 span {
    color: var(--atd-comp-teal-dark);
    font-weight: 800;
}

.atd-comp-choice-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.atd-comp-choice-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 10px;
}

.atd-check-icon {
    color: #10b981;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

.atd-btn-choice {
    display: block;
    text-align: center;
    background: var(--atd-comp-teal);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: var(--atd-comp-radius-sm);
    text-decoration: none;
}

.atd-btn-choice:hover {
    background: var(--atd-comp-teal-dark);
}

/* ==========================================================================
   PROS & CONS SECTION
   ========================================================================== */
.atd-comp-proscons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.atd-comp-tool-proscons-card {
    background: #ffffff;
    border: 1px solid var(--atd-comp-border);
    border-radius: var(--atd-comp-radius);
    padding: 24px;
    box-shadow: var(--atd-comp-shadow);
}

.atd-comp-tool-proscons-card h3 {
    font-size: 19px;
    color: var(--atd-comp-navy);
    margin: 0 0 16px 0;
    border-bottom: 1px solid var(--atd-comp-border-light);
    padding-bottom: 10px;
}

.atd-pros-block, .atd-cons-block {
    margin-bottom: 18px;
}

.atd-pros-block h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #15803d;
    margin: 0 0 8px 0;
}

.atd-cons-block h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #b91c1c;
    margin: 0 0 8px 0;
}

.atd-pros-block ul, .atd-cons-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.atd-pros-block li, .atd-cons-block li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    margin-bottom: 6px;
}

.atd-pro-icon {
    color: #15803d;
    font-weight: 900;
    font-size: 15px;
}

.atd-con-icon {
    color: #b91c1c;
    font-weight: 900;
    font-size: 15px;
}

/* ==========================================================================
   HANDS-ON TESTING NOTES
   ========================================================================== */
.atd-comp-tested-box {
    background: #ffffff;
    border: 1px solid var(--atd-comp-border);
    border-radius: var(--atd-comp-radius);
    padding: 26px;
    box-shadow: var(--atd-comp-shadow);
}

.atd-tested-item {
    margin-bottom: 20px;
}

.atd-tested-item strong {
    display: block;
    font-size: 14px;
    color: var(--atd-comp-navy);
    margin-bottom: 4px;
}

.atd-tested-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.atd-tested-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.atd-tested-res-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--atd-comp-radius-sm);
    padding: 16px;
}

.atd-tested-res-card strong {
    display: block;
    color: var(--atd-comp-navy);
    margin-bottom: 6px;
}

.atd-tested-res-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.atd-tested-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    border-top: 1px solid var(--atd-comp-border-light);
    padding-top: 16px;
}

.atd-tested-standout strong {
    color: #15803d;
}

.atd-tested-limits strong {
    color: #b91c1c;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 820px) {
    .atd-comp-vs-grid {
        flex-direction: column;
    }

    .atd-comp-vs-divider {
        width: 100%;
        margin: -10px 0;
    }

    .atd-comp-table thead th, .atd-comp-table tbody td {
        padding: 12px 14px;
    }
}
