/*--------------------------------------------------------------
# Numerology Profile (Stage 10)
--------------------------------------------------------------*/

/* Numbers grid on archive page */
.aw-numer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 30px;
}

.aw-numer-grid--master {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
}

.aw-numer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    border: 1px solid #e0d8cf;
    border-radius: var(--aw-border-radius, 8px);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.aw-numer-card:hover {
    border-color: #8b6db5;
    box-shadow: 0 4px 12px rgba(139, 109, 181, 0.15);
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.aw-numer-card--master {
    border-left: 3px solid #8b6db5;
    background: linear-gradient(135deg, #faf8f5 0%, #f0ebf5 100%);
}

.aw-numer-card__number {
    font-size: 2.4em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: #5a4a6b;
}

.aw-numer-card--master .aw-numer-card__number {
    color: #8b6db5;
}

.aw-numer-card__name {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 4px;
}

.aw-numer-card__planet {
    font-size: 0.75em;
    color: #888;
}

/* Compatibility table */
.aw-numer-compat-wrap {
    overflow-x: auto;
    margin: 20px 0 16px;
    -webkit-overflow-scrolling: touch;
}

.aw-numer-compat {
    border-collapse: collapse;
    font-size: 0.9em;
}

.aw-numer-compat th,
.aw-numer-compat td {
    border: 1px solid #e0d8cf;
    padding: 8px 12px;
    text-align: center;
    min-width: 36px;
}

.aw-numer-compat thead th {
    background: #f5f0eb;
    font-weight: 700;
}

.aw-numer-compat tbody th {
    background: #f5f0eb;
    font-weight: 700;
}

.aw-numer-compat--good    { background-color: #e8f5e9; color: #2e7d32; }
.aw-numer-compat--bad     { background-color: #fce4ec; color: #c62828; }
.aw-numer-compat--neutral { background-color: #fff8e1; }
.aw-numer-compat--self    { background-color: #e8eaf6; color: #5a4a6b; }

/* Hero section for single profile */
.aw-numer-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 24px;
    margin-bottom: 24px;
    border-radius: var(--aw-border-radius, 8px);
    background: linear-gradient(135deg, #f5f0eb 0%, #ede4f5 100%);
}

.aw-numer-hero--master {
    background: linear-gradient(135deg, #ede4f5 0%, #d1c4e9 100%);
}

.aw-numer-hero__number {
    font-size: 4.5em;
    font-weight: 800;
    line-height: 1;
    color: #5a4a6b;
    min-width: 80px;
    text-align: center;
}

.aw-numer-hero--master .aw-numer-hero__number {
    color: #6a1b9a;
}

.aw-numer-hero__info {
    flex: 1;
}

.aw-numer-hero__name {
    margin: 0 0 8px;
    font-size: 1.6em;
}

.aw-numer-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9em;
    color: #666;
}

.aw-numer-hero__badge {
    background: #8b6db5;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Quick facts table */
.aw-numer-facts {
    margin: 0 0 30px;
}

.aw-numer-facts__table {
    width: 100%;
    border-collapse: collapse;
}

.aw-numer-facts__table th,
.aw-numer-facts__table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0d8cf;
    text-align: left;
    font-size: 0.95em;
}

.aw-numer-facts__table th {
    width: 180px;
    font-weight: 600;
    color: #5a4a6b;
    background: #faf8f5;
}

.aw-numer-facts__table tr:last-child th,
.aw-numer-facts__table tr:last-child td {
    border-bottom: none;
}

/* Cross-links */
.aw-numer-crosslinks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
    padding: 20px;
    background: #f9f7f4;
    border-radius: var(--aw-border-radius, 8px);
}

.aw-numer-crosslinks h3 {
    margin: 0 0 10px;
    font-size: 1em;
}

.aw-numer-crosslinks ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.aw-numer-crosslinks li {
    font-size: 0.9em;
}

.aw-numer-crosslinks a {
    text-decoration: none;
    color: #5a4a6b;
}

.aw-numer-crosslinks a:hover {
    color: #8b6db5;
    text-decoration: underline;
}

/* Back link */
.aw-numer-back {
    margin: 24px 0;
    font-size: 0.95em;
}

.aw-numer-back a {
    color: #8b6db5;
    text-decoration: none;
}

.aw-numer-back a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .aw-numer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .aw-numer-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .aw-numer-hero__meta {
        justify-content: center;
    }

    .aw-numer-hero__number {
        font-size: 3.5em;
    }

    .aw-numer-crosslinks {
        grid-template-columns: 1fr;
    }

    .aw-numer-facts__table th {
        width: 130px;
    }
}

@media (max-width: 480px) {
    .aw-numer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aw-numer-grid--master {
        grid-template-columns: 1fr 1fr;
    }
}

