/* * Styles for Horse Colors Infographic
 * Features circular color swatches and grid layout
 */

.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-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* 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;
}

/* Color Swatch */
.hc-swatch-container {
    margin-bottom: 1rem;
}

.hc-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid transparent; /* Fallback */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Secondary Color Accent (Mane/Tail color) */
.hc-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 40%;
    border-top-left-radius: 100%;
    box-shadow: -1px -1px 2px rgba(0,0,0,0.1);
}

/* Special Pattern: Piebald (Cow print essentially) */
.hc-swatch.is-piebald-swatch {
    background: #fff;
    border: 2px solid #ddd;
    background-image: radial-gradient(#333 15%, transparent 16%),
                      radial-gradient(#333 15%, transparent 16%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

/* 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%;
}