/* ================================================================
   COMPATIBILITY PAIR PAGE — /zodiac/compatibility/{slug1}-{slug2}
   Standalone CSS — loaded only on compatibility pair pages
   ================================================================ */

/* ── Hero ── */

.cp-hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cp-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cp-hero-animal {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
}

.cp-hero-animal-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cp-hero-animal-link:hover {
    transform: translateY(-4px);
}

.cp-hero-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.cp-hero-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.cp-hero-zh {
    font-size: 0.85rem;
    opacity: 0.6;
    display: block;
    margin-top: 0.15rem;
}

.cp-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
}

.cp-hero-vs {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.cp-score-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cp-score-badge--excellent {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.cp-score-badge--very-good {
    background: rgba(139, 195, 74, 0.15);
    color: #9ccc65;
    border: 1px solid rgba(139, 195, 74, 0.3);
}

.cp-score-badge--good {
    background: rgba(205, 220, 57, 0.15);
    color: #d4e157;
    border: 1px solid rgba(205, 220, 57, 0.3);
}

.cp-score-badge--moderate {
    background: rgba(255, 193, 7, 0.15);
    color: #ffca28;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.cp-score-badge--difficult {
    background: rgba(255, 112, 67, 0.15);
    color: #ff8a65;
    border: 1px solid rgba(255, 112, 67, 0.3);
}

.cp-score-badge--very-difficult {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.cp-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-text, #e8e0d4);
}

.cp-hero-subtitle {
    font-size: 1rem;
    opacity: 0.65;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}


/* ── Relationship Badge ── */

.cp-relationship-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(232, 197, 71, 0.08);
    border: 1px solid rgba(232, 197, 71, 0.2);
}

.cp-relationship-badge--trine {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.2);
}

.cp-relationship-badge--secret_friend {
    background: rgba(156, 39, 176, 0.08);
    border-color: rgba(156, 39, 176, 0.2);
}

.cp-relationship-badge--clash {
    background: rgba(239, 83, 80, 0.08);
    border-color: rgba(239, 83, 80, 0.2);
}

.cp-relationship-badge--harm {
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.2);
}

.cp-relationship-label {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: var(--color-accent, #E8C547);
}

.cp-relationship-badge--trine .cp-relationship-label { color: #66bb6a; }
.cp-relationship-badge--secret_friend .cp-relationship-label { color: #ba68c8; }
.cp-relationship-badge--clash .cp-relationship-label { color: #ef5350; }
.cp-relationship-badge--harm .cp-relationship-label { color: #ffa726; }

.cp-relationship-desc {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 400px;
    line-height: 1.4;
}


/* ── Sections ── */

.cp-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent, #E8C547);
    margin-bottom: 0.75rem;
}

.cp-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--color-text, #e8e0d4);
}


/* ── Verdict ── */

.cp-verdict-card {
    background: rgba(232, 197, 71, 0.06);
    border: 1px solid rgba(232, 197, 71, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
}

.cp-verdict-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    color: var(--color-text, #e8e0d4);
}

.cp-verdict-text--alt {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.85;
}


/* ── Perspective Cards (side-by-side) ── */

.cp-perspectives {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.cp-perspective-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.cp-perspective-card--left {
    border-top: 3px solid var(--cp-accent1);
}

.cp-perspective-card--right {
    border-top: 3px solid var(--cp-accent2);
}

.cp-perspective-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.cp-perspective-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.cp-perspective-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text, #e8e0d4);
}

.cp-perspective-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    opacity: 0.85;
}


/* ── Compare Table ── */

.cp-compare-table {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.cp-compare-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-compare-row:last-child {
    border-bottom: none;
}

.cp-compare-row--header {
    background: rgba(255, 255, 255, 0.04);
}

.cp-compare-cell {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.cp-compare-cell--left {
    justify-content: flex-start;
    gap: 0.5rem;
}

.cp-compare-cell--right {
    justify-content: flex-end;
    gap: 0.5rem;
    text-align: right;
}

.cp-compare-cell--label {
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.5;
    white-space: nowrap;
    padding: 0.75rem 0.75rem;
}

.cp-compare-row--header .cp-compare-cell {
    font-weight: 700;
    font-size: 0.95rem;
}

.cp-compare-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}


/* ── Explore Links ── */

.cp-explore-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cp-explore-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid;
    text-decoration: none;
    color: var(--color-text, #e8e0d4);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cp-explore-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.cp-explore-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.cp-explore-card strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.cp-explore-card span {
    font-size: 0.8rem;
    opacity: 0.6;
}

.cp-other-heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    opacity: 0.7;
}

.cp-other-pairings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cp-other-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    text-decoration: none;
    color: var(--color-text, #e8e0d4);
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.cp-other-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}


/* ── FAQ ── */

.cp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cp-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.cp-faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-text, #e8e0d4);
    transition: background 0.2s ease;
}

.cp-faq-item summary::-webkit-details-marker {
    display: none;
}

.cp-faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.cp-faq-item[open] summary::after {
    content: '-';
}

.cp-faq-item summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cp-faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    opacity: 0.85;
}


/* ── Responsive ── */

@media (max-width: 640px) {
    .cp-hero-inner {
        gap: 0.5rem;
    }

    .cp-hero-icon {
        width: 72px;
        height: 72px;
    }

    .cp-hero-name {
        font-size: 1.05rem;
    }

    .cp-hero-title {
        font-size: 1.3rem;
    }

    .cp-perspectives {
        grid-template-columns: 1fr;
    }

    .cp-explore-links {
        grid-template-columns: 1fr;
    }

    .cp-compare-cell--label {
        font-size: 0.7rem;
        padding: 0.75rem 0.4rem;
    }

    .cp-compare-cell {
        padding: 0.6rem 0.7rem;
        font-size: 0.82rem;
    }

    .cp-section {
        padding: 2rem 1rem;
    }
}