/*--------------------------------------------------------------
# Chinese Zodiac (Stage 11)
--------------------------------------------------------------*/

/* Overview links section */
.aw-cz-overview-links {
    margin: 30px 0;
}

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

.aw-cz-sign-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 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-cz-sign-card:hover {
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

/* Element-based card accents */
.aw-cz-sign-card--wood  { border-left: 3px solid #27ae60; }
.aw-cz-sign-card--fire  { border-left: 3px solid #e74c3c; }
.aw-cz-sign-card--earth { border-left: 3px solid #f39c12; }
.aw-cz-sign-card--metal { border-left: 3px solid #95a5a6; }
.aw-cz-sign-card--water { border-left: 3px solid #3498db; }

.aw-cz-sign-symbol {
    font-size: 2.2em;
    line-height: 1;
    margin-bottom: 6px;
}

.aw-cz-sign-name {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.aw-cz-sign-years {
    font-size: 0.75em;
    color: #888;
    text-align: center;
}

/* Compatibility matrix */
.aw-cz-matrix-wrap {
    overflow-x: auto;
    margin: 20px 0 30px;
    -webkit-overflow-scrolling: touch;
}

.aw-cz-matrix {
    border-collapse: collapse;
    font-size: 0.85em;
    white-space: nowrap;
}

.aw-cz-matrix th,
.aw-cz-matrix td {
    border: 1px solid #e0d8cf;
    padding: 6px 8px;
    text-align: center;
    min-width: 44px;
}

.aw-cz-matrix thead th {
    background: #f5f0eb;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}

.aw-cz-matrix tbody th {
    background: #f5f0eb;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 1;
}

.aw-cz-cell a {
    display: block;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    padding: 2px;
}

.aw-cz-cell a:hover {
    text-decoration: underline;
}

.aw-cz-high { background-color: #e8f5e9; }
.aw-cz-mid  { background-color: #fff8e1; }
.aw-cz-low  { background-color: #fce4ec; }

/* Hero section for single chinese zodiac pages */
.aw-cz-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 30px 24px;
    margin-bottom: 24px;
    border-radius: var(--aw-border-radius, 8px);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e0 100%);
}

.aw-cz-hero--overview {
    flex-direction: column;
    background: linear-gradient(135deg, #fef3e7 0%, #fce4d6 100%);
}

.aw-cz-hero__sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.aw-cz-hero__symbol {
    font-size: 3.5em;
    line-height: 1;
}

.aw-cz-hero__name {
    font-size: 1.4em;
    font-weight: 700;
    color: #5a4a6b;
}

.aw-cz-hero__separator {
    font-size: 2em;
    color: #c0392b;
    font-weight: 300;
}

.aw-cz-hero__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.95em;
    color: #666;
}

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

    .aw-cz-hero {
        padding: 20px 12px;
        gap: 12px;
    }

    .aw-cz-hero__symbol {
        font-size: 2.5em;
    }

    .aw-cz-hero__name {
        font-size: 1.1em;
    }
}

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

    .aw-cz-matrix {
        font-size: 0.75em;
    }

    .aw-cz-matrix th,
    .aw-cz-matrix td {
        padding: 4px 5px;
        min-width: 36px;
    }
}

