/**
 * Tool Comparison Frontend Styles
 * Mobile-first responsive design
 */

/* Container */
.alc-comp-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ===== HERO: Logos Side by Side ===== */
.alc-comp-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 0;
    text-align: center;
}

.alc-comp-tool-card {
    flex: 1;
    max-width: 320px;
}

.alc-comp-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alc-comp-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alc-comp-tool-name {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 4px;
}

.alc-comp-tagline {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
}

.alc-comp-link {
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}
.alc-comp-link:hover { text-decoration: underline; }

.alc-comp-vs-badge {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    background: #b92d2d;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(185,45,45,0.3);
}

/* ===== Quick Verdict Banner ===== */
.alc-comp-verdict-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #f0f6fc, #e8f4f8);
    border: 1px solid #c3d4e6;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.alc-comp-verdict-icon { font-size: 24px; flex-shrink: 0; }
.alc-comp-verdict-banner p { margin: 0; font-size: 15px; font-weight: 500; }

/* ===== Summaries ===== */
.alc-comp-summaries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.alc-comp-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}
.alc-comp-summary-card h3 { margin: 0 0 8px; font-size: 16px; }
.alc-comp-summary-card p { margin: 0 0 12px; font-size: 14px; color: #444; }

.alc-comp-visit-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.alc-comp-visit-btn:hover { background: #005a87; color: #fff; }

/* ===== Comparison Table ===== */
.alc-comp-table-section {
    margin-bottom: 32px;
}

.alc-comp-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.alc-comp-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid #eee;
}

.alc-comp-table-inner {
    min-width: 600px;
}

.alc-comp-table-header {
    display: grid;
    background: #1a1a2e;
    color: #fff;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 14px;
}
.alc-comp-th-label,
.alc-comp-th-tool {
    padding: 14px 16px;
}
.alc-comp-th-tool { text-align: center; }

.alc-comp-row {
    display: grid;
    border-bottom: 1px solid #eee;
    background: #fff;
}
.alc-comp-row:last-child {
    border-radius: 0 0 10px 10px;
}
.alc-comp-row-even { background: #fafbfc; }

.alc-comp-cell-label {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    position: sticky;
    left: 0;
    z-index: 1;
}

.alc-comp-cell-val {
    padding: 14px 16px;
    font-size: 14px;
    color: #444;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alc-comp-cell-val + .alc-comp-cell-val {
    border-left: 1px solid #eee;
}

/* ===== Traffic Overview ===== */
.alc-comp-traffic-section { margin-bottom: 32px; }
.alc-comp-traffic-grid {
    display: grid;
    gap: 16px;
}
.alc-comp-traffic-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.alc-comp-traffic-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}
.alc-comp-traffic-stats {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.alc-comp-traffic-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.alc-comp-traffic-label {
    font-size: 13px;
    color: #666;
}
.alc-comp-traffic-value {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
}
.alc-comp-traffic-flags {
    display: flex;
    gap: 6px;
    align-items: center;
}
.alc-comp-flag {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.alc-comp-traffic-updated {
    padding: 8px 16px 12px;
    font-size: 11px;
    color: #999;
    border-top: 1px solid #f0f0f0;
}

/* ===== Pros & Cons ===== */
.alc-comp-pros-cons { margin-bottom: 32px; }

.alc-comp-pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alc-comp-pc-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.alc-comp-pc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.alc-comp-pc-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.alc-comp-pros, .alc-comp-cons { padding: 12px 16px; }
.alc-comp-cons { border-top: 1px solid #f0f0f0; }

.alc-comp-pro-item, .alc-comp-con-item {
    padding: 6px 0;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alc-comp-check { color: #00a32a; font-weight: 700; flex-shrink: 0; }
.alc-comp-cross { color: #d63638; font-weight: 700; flex-shrink: 0; }

/* ===== Final Verdict ===== */
.alc-comp-final-verdict {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.alc-comp-final-verdict p { margin: 0; font-size: 15px; color: #333; }

/* ===== FAQ ===== */
.alc-comp-faq { margin-bottom: 32px; }

.alc-comp-faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.alc-comp-faq-item summary {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.alc-comp-faq-item summary::after { content: '+'; font-size: 20px; color: #999; }
.alc-comp-faq-item[open] summary::after { content: '−'; }
.alc-comp-faq-item summary::-webkit-details-marker { display: none; }

.alc-comp-faq-item p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* ===== Footer CTA ===== */
.alc-comp-footer-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.alc-comp-cta-btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    text-align: center;
    flex: 1;
    max-width: 280px;
}
.alc-comp-cta-a {
    background: #0073aa;
    color: #fff;
}
.alc-comp-cta-a:hover { background: #005a87; color: #fff; }
.alc-comp-cta-b {
    background: #1a1a2e;
    color: #fff;
}
.alc-comp-cta-b:hover { background: #0d0d1a; color: #fff; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .alc-comp-wrap { padding: 16px 12px 40px; }
    
    /* Hero stacks on mobile */
    .alc-comp-hero {
        flex-direction: column;
        gap: 8px;
        padding: 20px 0;
    }
    .alc-comp-vs-badge { width: 36px; height: 36px; font-size: 16px; }
    .alc-comp-logo { width: 56px; height: 56px; border-radius: 12px; }
    .alc-comp-logo-placeholder { width: 56px; height: 56px; font-size: 24px; }
    .alc-comp-tool-name { font-size: 16px; }
    
    /* Summaries stack */
    .alc-comp-summaries { grid-template-columns: 1fr; }
    
    /* Table: convert to stacked cards on mobile */
    .alc-comp-table-scroll {
        overflow-x: visible !important;
        border: none !important;
        border-radius: 0 !important;
    }
    .alc-comp-table-inner {
        min-width: 0 !important;
    }
    .alc-comp-table-header {
        display: none !important;
    }
    .alc-comp-scroll-hint {
        display: none !important;
    }
    .alc-comp-row {
        display: block !important;
        border: 1px solid #e8e8e8 !important;
        border-radius: 10px !important;
        margin-bottom: 10px !important;
        overflow: hidden;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .alc-comp-row-even {
        background: #fff !important;
    }
    .alc-comp-cell-label {
        display: block !important;
        background: #1a1a2e !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 8px 14px !important;
        position: static !important;
    }
    .alc-comp-cell-val {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-left: none !important;
        border-bottom: 1px solid #f0f0f0;
        gap: 0;
    }
    .alc-comp-cell-val:last-child {
        border-bottom: none;
    }
    .alc-comp-cell-val + .alc-comp-cell-val {
        border-left: none !important;
    }
    .alc-comp-cell-val::before {
        content: attr(data-tool) ": ";
        font-weight: 700;
        color: #1a1a2e;
        margin-right: 6px;
        flex-shrink: 0;
        min-width: 0;
    }
    
    /* Pros/cons stack */
    .alc-comp-pc-grid { grid-template-columns: 1fr; }
    
    /* Section titles */
    .alc-comp-section-title { font-size: 18px; }
    
    /* Footer CTA stack */
    .alc-comp-footer-cta { flex-direction: column; align-items: stretch; }
    .alc-comp-cta-btn { max-width: none; }
}

/* Pricing badge in hero */
.alc-comp-pricing {
    display: inline-block;
    background: #e6f4e8;
    color: #0a6b2e;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 4px 0 8px;
}

/* Multi-tool: shrink hero cards when 4-5 tools */
.alc-comp-wrap[data-tools="4"] .alc-comp-tool-card,
.alc-comp-wrap[data-tools="5"] .alc-comp-tool-card { max-width: 180px; }
.alc-comp-wrap[data-tools="4"] .alc-comp-logo,
.alc-comp-wrap[data-tools="5"] .alc-comp-logo { width: 56px; height: 56px; }
.alc-comp-wrap[data-tools="4"] .alc-comp-tool-name,
.alc-comp-wrap[data-tools="5"] .alc-comp-tool-name { font-size: 15px; }
.alc-comp-wrap[data-tools="4"] .alc-comp-vs-badge,
.alc-comp-wrap[data-tools="5"] .alc-comp-vs-badge { width: 32px; height: 32px; font-size: 14px; }

/* Footer CTA: dynamic colors */
.alc-comp-cta-btn { color: #fff !important; }
.alc-comp-cta-btn:hover { opacity: 0.9; color: #fff !important; }

@media (max-width: 480px) {
    .alc-comp-summary-card { padding: 14px; }
    .alc-comp-summary-card h3 { font-size: 15px; }
    .alc-comp-final-verdict { padding: 16px; }
}

/* Multi-tool mobile: summaries and pros stack */
@media (max-width: 768px) {
    .alc-comp-summaries { grid-template-columns: 1fr !important; }
    .alc-comp-pc-grid { grid-template-columns: 1fr !important; }
    .alc-comp-wrap[data-tools="4"] .alc-comp-hero,
    .alc-comp-wrap[data-tools="5"] .alc-comp-hero { flex-wrap: wrap; justify-content: center; }
}

/* ===== Recent Comparisons Carousel ===== */
.alc-comp-recent {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #eee;
}
.alc-comp-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.alc-comp-recent-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.alc-comp-carousel-nav {
    display: flex;
    gap: 6px;
}
.alc-comp-carousel-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dcdcde;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}
.alc-comp-carousel-btn:hover {
    border-color: #0073aa;
    color: #0073aa;
    background: #f0f6fc;
}
.alc-comp-carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.alc-comp-carousel-track {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.alc-comp-carousel-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s ease;
    width: 100%;
}
.alc-comp-carousel-slide {
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box;
    padding: 0 4px;
}
.alc-comp-recent-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.alc-comp-recent-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #0073aa;
    color: inherit;
    text-decoration: none;
}
.alc-comp-recent-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.alc-comp-recent-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 2px;
}
.alc-comp-recent-logo-ph {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.alc-comp-recent-vs {
    font-size: 11px;
    font-weight: 800;
    color: #d63638;
}
.alc-comp-recent-info {
    flex: 1;
    min-width: 0;
}
.alc-comp-recent-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}
.alc-comp-recent-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.alc-comp-recent-date {
    font-size: 12px;
    color: #999;
}
.alc-comp-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.alc-comp-carousel-dot {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: background 0.2s;
}
.alc-comp-carousel-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dcdcde;
    transition: background 0.2s;
}
.alc-comp-carousel-dot.active::after {
    background: #0073aa;
}

@media (max-width: 768px) {
    .alc-comp-recent-card { flex-direction: column; gap: 10px; padding: 14px; }
    .alc-comp-recent-title { font-size: 14px; }
    .alc-comp-recent-excerpt { white-space: normal; }
    .alc-comp-carousel-btn { width: 30px; height: 30px; font-size: 14px; }
}

/* ===== ARCHIVE PAGE — /compare/ directory ===== */
.alc-archive-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1a1a2e;
}

.alc-archive-header,
.alc-archive-hero {
    text-align: center;
    margin-bottom: 30px;
    padding: 56px 20px 48px;
    background: #0f172a;
    border-radius: 20px;
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
}
.alc-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(99,102,241,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.alc-archive-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(99,102,241,0.2));
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(125,211,252,0.25);
    backdrop-filter: blur(4px);
    position: relative;
}
.alc-archive-header h1,
.alc-archive-hero h1 {
    font-size: 44px;
    font-weight: 900;
    margin: 0 0 14px;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.5px;
    position: relative;
}
.alc-archive-header p,
.alc-archive-hero p {
    font-size: 18px;
    color: #94a3b8;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}
@media (max-width: 768px) {
    .alc-archive-hero { padding: 36px 16px 32px; border-radius: 14px; }
    .alc-archive-hero h1 { font-size: 28px; }
    .alc-archive-hero p { font-size: 15px; }
}

/* Grid */
.alc-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .alc-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .alc-archive-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Card */
.alc-archive-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.alc-archive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #0073aa;
}

/* Logos row inside card */
.alc-archive-card-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.alc-archive-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 2px;
}
.alc-archive-logo-ph {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.alc-archive-vs {
    font-size: 12px;
    font-weight: 800;
    color: #d63638;
}

.alc-archive-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.alc-archive-card-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    flex: 1;
}
.alc-archive-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}
.alc-archive-card-count {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
}
.alc-archive-card-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}
.alc-archive-price-badge {
    background: #006b00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Pagination */
.alc-archive-pagination {
    text-align: center;
}
.alc-archive-pagination ul {
    display: inline-flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.alc-archive-pagination li a,
.alc-archive-pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    transition: all 0.15s;
}
.alc-archive-pagination li a:hover { background: #f0f6fc; border-color: #0073aa; color: #0073aa; }
.alc-archive-pagination li span.current { background: #0073aa; color: #fff; border-color: #0073aa; }

/* Archive section title */
.alc-archive-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
}

/* Empty state */
.alc-archive-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}
.alc-archive-empty h2 { margin: 0 0 8px; }
.alc-archive-empty p { color: #666; }

/* ===== HERO BADGE ===== */
.alc-archive-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ===== COMPARISON CREATOR v2 ===== */
.alc-creator-section {
    max-width: 680px;
    margin: -24px auto 40px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}
.alc-creator-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.alc-creator-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.alc-creator-header-icon {
    width: 48px;
    height: 48px;
    background: #f0f6fc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
    flex-shrink: 0;
}
.alc-creator-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}
.alc-creator-desc {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0;
}
.alc-creator-desc strong { color: #0073aa; }

/* Search with icon */
.alc-creator-search-wrap {
    position: relative;
    margin-bottom: 16px;
}
.alc-creator-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}
.alc-creator-search {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #f8fafc;
}
.alc-creator-search:focus {
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

/* Dropdown */
.alc-creator-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 4px;
}
.alc-creator-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}
.alc-creator-dropdown-item:last-child { border-bottom: none; }
.alc-creator-dropdown-item:hover { background: #f0f6fc; }
.alc-creator-dropdown-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
    flex-shrink: 0;
}
.alc-creator-dropdown-logo-ph {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #0073aa;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.alc-creator-dropdown-info { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.alc-creator-dropdown-name { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.alc-creator-dropdown-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.alc-dd-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.alc-dd-cat { background: #dbeafe; color: #1e40af; }
.alc-dd-job { background: #dcfce7; color: #166534; }
.alc-dd-tag { background: #fef3c7; color: #92400e; }
.alc-creator-dropdown-empty { padding: 20px 16px; text-align: center; color: #94a3b8; font-size: 14px; }

/* Selected tools */
.alc-creator-selected { margin-bottom: 14px; }
.alc-creator-selected-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.alc-creator-count {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}
.alc-creator-selected-cards { display: flex; flex-direction: column; gap: 8px; }
.alc-creator-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f6fc;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 8px 12px 8px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    transition: all 0.15s;
}
.alc-creator-card:hover { border-color: #93c5fd; background: #e0ecff; }
.alc-creator-card-drag {
    cursor: grab;
    color: #94a3b8;
    font-size: 14px;
    padding: 2px 4px;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
    transition: color 0.15s;
}
.alc-creator-card-drag:hover { color: #1e40af; }
.alc-creator-card-drag:active { cursor: grabbing; }
.alc-creator-card-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e40af;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.alc-creator-card-placeholder {
    background: #e0ecff;
    border: 2px dashed #93c5fd;
    border-radius: 10px;
    height: 44px;
}
.ui-sortable-helper.alc-creator-card {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 100;
}
.alc-creator-card-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}
.alc-creator-card-logo-ph {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alc-creator-card-name { white-space: nowrap; }
.alc-creator-card-remove {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.15s;
}
.alc-creator-card-remove:hover { color: #dc2626; }

/* Match badges */
.alc-creator-match {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 12px;
}
.alc-match-label { font-weight: 600; color: #166534; margin-right: 2px; }
.alc-match-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
}
.alc-match-cat { background: #dbeafe; color: #1e40af; }
.alc-match-job { background: #dcfce7; color: #166534; }
.alc-match-tag { background: #fef3c7; color: #92400e; }

/* Notice */
.alc-creator-notice {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}
.alc-creator-notice-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alc-creator-notice-warn { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.alc-creator-notice-info { background: #f0f6fc; color: #0073aa; border: 1px solid #bfdbfe; }

/* Compare button */
.alc-creator-actions { margin-top: 4px; text-align: center; }
.alc-creator-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073aa;
    color: #fff;
    border: 2px solid #0073aa;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}
.alc-creator-btn:hover:not(:disabled) { background: #005a87; border-color: #005a87; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,115,170,0.3); }
.alc-creator-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.alc-creator-btn-outline {
    background: transparent;
    color: #0073aa;
    margin-top: 12px;
    width: auto;
}
.alc-creator-btn-outline:hover { background: #f0f6fc; transform: none; box-shadow: none; }
.alc-creator-limit-hint {
    font-size: 11px;
    color: #94a3b8;
    margin: 8px 0 0;
}

/* Processing v2 */
.alc-creator-processing { text-align: center; padding: 40px 0 24px; }
.alc-creator-processing-visual { margin-bottom: 20px; }
.alc-creator-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: #0073aa;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: alc-spin 0.7s linear infinite;
}
@keyframes alc-spin { to { transform: rotate(360deg); } }
.alc-creator-processing-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.alc-proc-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.alc-proc-logo-ph {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0073aa;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alc-proc-vs { font-size: 12px; font-weight: 700; color: #94a3b8; }
.alc-creator-processing-text { font-size: 16px; font-weight: 600; color: #1a1a2e; margin: 0 0 16px; }

/* AI Fact box */
.alc-creator-fact-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 420px;
    margin: 0 auto;
}
.alc-creator-fact-label {
    font-size: 10px;
    font-weight: 700;
    color: #0073aa;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.alc-creator-fact-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    transition: opacity 0.3s;
    min-height: 18px;
}

/* Error state */
.alc-creator-error {
    text-align: center;
    padding: 32px 0;
}
.alc-creator-error svg { margin-bottom: 12px; }
.alc-creator-error-msg {
    font-size: 14px;
    font-weight: 500;
    color: #dc2626;
    margin: 0 0 16px;
}

/* ===== BREADCRUMB (single comparison page) ===== */
.alc-comp-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.alc-comp-breadcrumb a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
}
.alc-comp-breadcrumb a:hover { text-decoration: underline; }
.alc-comp-breadcrumb > span:last-child {
    color: #1e293b;
    font-weight: 700;
}
.alc-comp-breadcrumb-sep { color: #94a3b8; font-weight: 400; }

/* Compare Another CTA */
.alc-comp-compare-another {
    text-align: center;
    padding: 32px 0 8px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.alc-comp-compare-another-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}
.alc-comp-compare-another-btn:hover { background: #1e293b; color: #fff; }
.alc-comp-compare-another-btn svg { flex-shrink: 0; }

/* Archive mobile */
@media (max-width: 768px) {
    .alc-archive-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .alc-archive-hero h1 { font-size: 24px; }
    .alc-archive-search-form { flex-direction: column; }
    .alc-creator-inner { padding: 24px 18px; }
    .alc-random-section { flex-direction: column !important; gap: 8px !important; margin: 0 auto 24px !important; padding: 0 16px !important; }
    .alc-random-btn { width: 100%; justify-content: center; }
    .alc-creator-section { margin-top: 0 !important; }
}
@media (max-width: 480px) {
    .alc-archive-grid { grid-template-columns: 1fr; }
    .alc-archive-card { padding: 16px; }
    .alc-archive-logo { width: 36px; height: 36px; }
    .alc-creator-selected-cards { flex-direction: column; }
    .alc-creator-inner { padding: 20px 14px; }
}

/* ===== Random Compare Button ===== */
.alc-random-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -8px auto 16px;
    max-width: 800px;
}
.alc-random-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #1e293b;
    color: #e2e8f0;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.alc-random-btn:hover { background: #334155; color: #f8fafc; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,41,59,0.3); }
.alc-random-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.alc-random-btn svg { flex-shrink: 0; }
.alc-random-hint {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* Spinner animation for random button loading */
@keyframes alc-spin { to { transform: rotate(360deg); } }
.alc-spin { animation: alc-spin 0.8s linear infinite; }

/* ===== Widget Shortcode Grid ===== */
.alc-widget-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.alc-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}
.alc-widget-empty {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-size: 14px;
}
.alc-widget-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.alc-widget-load-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.alc-widget-load-more:hover { background: #e2e8f0; }
.alc-widget-load-more:disabled { opacity: 0.6; cursor: wait; }
.alc-widget-compare-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.alc-widget-compare-link:hover { background: #334155; color: #f8fafc; }
@media (max-width: 768px) {
    .alc-widget-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 480px) {
    .alc-widget-grid { grid-template-columns: 1fr; }
    .alc-widget-footer { flex-direction: column; }
    .alc-widget-load-more, .alc-widget-compare-link { width: 100%; justify-content: center; text-align: center; }
}
