/* * Styles for Horse Colors Infographic
 * Uses a repository SVG horse silhouette and original CSS scenery.
 */

body.horse-colors-page .infographic-layout {
    max-width: min(1440px, calc(100% - 2rem));
    width: 100%;
}

body.horse-colors-page .infographic-fullwidth {
    max-width: min(1440px, calc(100% - 2rem));
}

.horse-colors-wrapper {
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--sans, sans-serif);
}

.hc-intro {
    background: #fffdf9;
    padding: 1.5rem;
    border-radius: var(--radius-main, 12px);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    text-align: center;
}

.hc-intro h2 {
    color: var(--wood-orange, #e07a00);
    margin-top: 0;
    font-size: 1.5rem;
}

.hc-section {
    margin-bottom: 3rem;
}

.hc-section-title {
    font-size: 1.1rem;
    color: #666;
    border-bottom: 2px solid var(--line-gray, #eee);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.hc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* Card Container */
.hc-card {
    background: #fff;
    border: 1px solid var(--line-gray, #eee);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none; /* Reset for links */
    color: inherit;
}

.hc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hc-card.is-linked:hover {
    border-color: var(--wood-orange);
    background: #fffaf0;
}

/* Horse SVG figure */
.hc-figure {
    --hc-coat: #8f5334;
    --hc-accent: #171717;
    --hc-border: rgba(0,0,0,0.12);
    width: min(100%, 204px);
    aspect-ratio: 1.55;
    display: grid;
    place-items: center;
    margin: 0 auto 0.65rem;
    position: relative;
    border-radius: 10px;
    background:
        radial-gradient(circle at 82% 20%, rgba(255,255,255,0.82), transparent 16%),
        linear-gradient(180deg, #dcefeb 0 52%, #b8ce9c 52% 63%, #c5a56e 63% 100%);
    border: 1px solid rgba(95, 82, 54, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
    overflow: hidden;
}

.hc-figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, transparent 0 52%, rgba(92,102,58,0.22) 52.4% 53.4%, transparent 54%),
        radial-gradient(ellipse at 19% 73%, transparent 0 38%, rgba(55,100,68,0.22) 38.5% 39.5%, transparent 40%),
        radial-gradient(ellipse at 55% 80%, transparent 0 42%, rgba(55,100,68,0.19) 42.5% 43.5%, transparent 44%);
    opacity: 0.75;
}

.hc-figure::after {
    content: "";
    position: absolute;
    left: 11%;
    right: 11%;
    bottom: 24%;
    height: 1px;
    background: rgba(86, 72, 38, 0.28);
}

.hc-horse-outline,
.hc-horse-shape,
.hc-horse-accent {
    width: 84%;
    height: 84%;
    display: block;
    background: var(--hc-coat);
    filter: drop-shadow(0 0 1px rgba(48,40,28,0.55)) drop-shadow(0 8px 8px rgba(0,0,0,0.24));
    position: relative;
    z-index: 2;
    -webkit-mask: url('../../images/horse-colors/horse-icon.svg') center / contain no-repeat;
    mask: url('../../images/horse-colors/horse-icon.svg') center / contain no-repeat;
}

.hc-horse-outline {
    position: absolute;
    width: 87%;
    height: 87%;
    background: rgba(62, 49, 30, 0.62);
    filter: none;
    transform: translateY(1px);
    z-index: 1;
}

.hc-horse-accent {
    position: absolute;
    background: var(--hc-accent);
    opacity: 0.95;
    z-index: 3;
    clip-path: polygon(0 0, 43% 0, 33% 100%, 0 100%);
}

.hc-figure.is-piebald-figure .hc-horse-shape {
    background:
        radial-gradient(circle at 24% 34%, #2c2724 0 8%, transparent 9%),
        radial-gradient(circle at 62% 58%, #2c2724 0 11%, transparent 12%),
        radial-gradient(circle at 78% 28%, #2c2724 0 7%, transparent 8%),
        #f8f5ee;
}

.hc-figure.is-speckled-figure .hc-horse-shape {
    background:
        radial-gradient(circle at 18% 35%, #2f2f2f 0 4%, transparent 4.6%),
        radial-gradient(circle at 42% 58%, #2f2f2f 0 3.5%, transparent 4.1%),
        radial-gradient(circle at 66% 40%, #2f2f2f 0 4.5%, transparent 5.1%),
        radial-gradient(circle at 80% 70%, #2f2f2f 0 3%, transparent 3.6%),
        #ddd7ca;
}

.hc-coat-chips {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    min-height: 16px;
    margin: 0 0 0.85rem;
}

.hc-coat-chip {
    width: 26px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--hc-border, rgba(0,0,0,0.14));
    background: var(--hc-coat);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
}

.hc-coat-chip.is-piebald-chip {
    background:
        radial-gradient(circle at 35% 45%, #333 0 18%, transparent 19%),
        radial-gradient(circle at 72% 64%, #333 0 16%, transparent 17%),
        #fff;
}

.hc-coat-chip.is-speckled-chip {
    background:
        radial-gradient(circle at 26% 45%, #333 0 10%, transparent 11%),
        radial-gradient(circle at 58% 55%, #333 0 8%, transparent 9%),
        radial-gradient(circle at 78% 38%, #333 0 7%, transparent 8%),
        #ddd7ca;
}

/* Text Typography */
.hc-mn {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark, #333);
}

.hc-card.is-linked .hc-mn {
    text-decoration: underline;
    text-decoration-color: rgba(224, 122, 0, 0.3);
    text-decoration-thickness: 2px;
}

.hc-sub {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hc-en {
    text-transform: uppercase;
    font-size: 0.7rem;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.hc-desc {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
    border-top: 1px dotted #eee;
    padding-top: 0.5rem;
    width: 100%;
}

@media (min-width: 1180px) {
    .hc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}