/* =========================================================================
   14 — Planet In Sign (aw-pis-*)
   ========================================================================= */

/* Hero */
.aw-pis-hero {
    background: linear-gradient(135deg, var(--pis-accent, #8e44ad) 0%, rgba(0, 0, 0, 0.85) 100%);
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 12px;
}
.aw-pis-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}
.aw-pis-hero__symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.aw-pis-hero__planet-symbol {
    opacity: 0.9;
}
.aw-pis-hero__sign-symbol {
    opacity: 0.7;
}
.aw-pis-hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #fff;
}
.aw-pis-hero__subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 1rem;
    line-height: 1.5;
}
.aw-pis-hero__dignity {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.aw-pis-dignity--strong {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.4);
}
.aw-pis-dignity--weak {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
}
.aw-pis-dignity--neutral {
    background: rgba(149, 165, 166, 0.15);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

/* Facts table */
.aw-pis-facts {
    margin-bottom: 2rem;
}
.aw-pis-facts__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.aw-pis-facts__table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #eee;
}
.aw-pis-facts__table td:first-child {
    font-weight: 600;
    color: #555;
    width: 35%;
}

/* Tags */
.aw-pis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}
.aw-pis-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Cross-links */
.aw-pis-crosslinks {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 10px;
}
.aw-pis-crosslinks h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}
.aw-pis-crosslinks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}
.aw-pis-crosslinks__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    font-size: 0.85rem;
    text-align: center;
}
.aw-pis-crosslinks__item:hover {
    border-color: #8e44ad;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.15);
    transform: translateY(-1px);
}
.aw-pis-crosslinks__item.aw-pis-dignity--strong {
    border-left: 3px solid #2ecc71;
}
.aw-pis-crosslinks__item.aw-pis-dignity--weak {
    border-left: 3px solid #e74c3c;
}
.aw-pis-crosslinks__symbol {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}
.aw-pis-crosslinks__name {
    font-weight: 500;
}
.aw-pis-crosslinks__dignity {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 0.15rem;
}

/* Related links */
.aw-pis-related {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}
.aw-pis-related__link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #8e44ad;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.aw-pis-related__link:hover {
    background: #7d3c98;
    color: #fff;
}

/* Archive — Matrix table */
.aw-pis-matrix-wrap {
    overflow-x: auto;
    margin: 2rem 0;
}
.aw-pis-matrix {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
    min-width: 700px;
}
.aw-pis-matrix th {
    padding: 0.6rem 0.4rem;
    background: #f5f5f5;
    font-size: 1.2rem;
    border-bottom: 2px solid #ddd;
}
.aw-pis-matrix__planet {
    text-align: left;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    background: #fafafa;
    border-right: 2px solid #ddd;
}
.aw-pis-matrix__cell {
    padding: 0.4rem;
    border: 1px solid #eee;
    position: relative;
}
.aw-pis-matrix__cell a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    padding: 0.3rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.aw-pis-matrix__cell a:hover {
    background: #f0e6f6;
}
.aw-pis-matrix__cell.aw-pis-dignity--strong {
    background: rgba(39, 174, 96, 0.08);
}
.aw-pis-matrix__cell.aw-pis-dignity--strong a {
    color: #27ae60;
    font-weight: 600;
}
.aw-pis-matrix__cell.aw-pis-dignity--weak {
    background: rgba(231, 76, 60, 0.06);
}
.aw-pis-matrix__cell.aw-pis-dignity--weak a {
    color: #c0392b;
}
.aw-pis-matrix__dignity-dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    margin: 2px auto 0;
    opacity: 0.5;
}

/* Legend */
.aw-pis-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2rem;
    font-size: 0.85rem;
}
.aw-pis-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
}

/* Planet signs links (archive) */
.aw-pis-planet-signs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}
.aw-pis-planet-signs__link {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.aw-pis-planet-signs__link:hover {
    border-color: #8e44ad;
    color: #8e44ad;
}
.aw-pis-planet-signs__link.aw-pis-dignity--strong {
    border-color: #27ae60;
    color: #27ae60;
}
.aw-pis-planet-signs__link.aw-pis-dignity--weak {
    border-color: #e74c3c;
    color: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .aw-pis-hero__symbol {
        font-size: 2.5rem;
    }
    .aw-pis-hero__title {
        font-size: 1.5rem;
    }
    .aw-pis-crosslinks__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .aw-pis-facts__table td:first-child {
        width: 40%;
    }
}

@media (max-width: 480px) {
    .aw-pis-hero {
        padding: 2rem 1rem;
    }
    .aw-pis-crosslinks__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aw-pis-related {
        flex-direction: column;
    }
}
