/* Ant Species Detail Styling */

.species-detail-container {
    padding-bottom: 2rem;
}

/* Breadcrumb */
.species-breadcrumb {
    font-size: 0.875rem;
}

/* Hero & Header */
.species-hero {
    margin-bottom: 1.5rem;
}

.species-taxa-badge {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Quick Parameters Grid ("Auf einen Blick") */
.species-quick-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quick-param-card {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.125));
    border-radius: 0.75rem;
    padding: 0.75rem 0.65rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-param-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.quick-param-icon {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.quick-param-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.2rem;
}

.quick-param-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-body-color);
    line-height: 1.2;
}

/* Detail Section Cards */
.ant-detail-card {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.125));
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ant-detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.ant-detail-card-header h2,
.ant-detail-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-heading-color, var(--bs-body-color));
}

/* Image & Gallery */
.species-main-image-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color);
}

.species-main-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.species-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
}

.species-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 0.5rem;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.species-gallery-thumb:hover,
.species-gallery-thumb.active {
    opacity: 1;
    border-color: var(--bs-primary);
    transform: scale(1.04);
}

.species-placeholder-card {
    border-radius: 0.75rem;
    padding: 2.5rem 1rem;
    text-align: center;
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px dashed var(--bs-border-color);
}

/* Keeping Parameters Table */
.keeping-params-table th {
    width: 40%;
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d);
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}

.keeping-params-table td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}

/* Ant Sizes Comparison */
.ant-sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.ant-size-card {
    background-color: var(--bs-secondary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.ant-size-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ant-size-scale-container {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.ant-size-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ant-size-col-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
}

.ant-size-box {
    background-color: var(--bs-tertiary-bg, #e9ecef);
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
    border-radius: 0.5rem;
    height: 75px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    padding: 6px;
    overflow: hidden;
}

.ant-size-img img {
    height: auto;
    max-height: 55px;
    object-fit: contain;
    transition: filter 0.2s ease;
}

/* Dark mode silhouette contrast: invert black SVG to bright ant */
[data-bs-theme="dark"] .ant-size-img img {
    filter: invert(0.88) brightness(1.15) drop-shadow(0 0 2px rgba(255, 255, 255, 0.25));
}

[data-bs-theme="light"] .ant-size-img img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.ant-size-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bs-body-color);
}

/* Flight Activity & Chart */
.flight-chart-container {
    position: relative;
    width: 100%;
    height: 240px;
}

.flight-condition-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

/* Distribution Tags */
.distribution-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.country-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.825rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    text-decoration: none;
    transition: all 0.15s ease;
}

.country-tag:hover {
    background-color: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.country-search-input {
    font-size: 0.85rem;
}

/* Food Acceptance */
.food-acceptance-item {
    background-color: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.65rem;
}

.food-progress {
    height: 6px;
    border-radius: 3px;
    background-color: var(--bs-tertiary-bg);
}

/* Difficulty Rating Section */
.difficulty-progress {
    height: 0.85rem;
    border-radius: 4px;
}

.difficulty-label {
    min-width: 6.5rem;
    font-size: 0.85rem;
}

/* Classification Sidebar Table */
.classification-table th {
    width: 40%;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    padding: 0.45rem 0.25rem;
}

.classification-table td {
    font-size: 0.875rem;
    padding: 0.45rem 0.25rem;
}

/* Backward compatibility classes */
.species-name { font-style: italic; }
.size-th { min-width: 80px; }
.ant-detail-section { margin-top: 15px; margin-bottom: 15px; }
.food-item-name { min-width: 8rem; font-weight: 500; }
.food-acceptance-badge { min-width: 3.5rem; text-align: center; }
.food-comment { max-width: 30rem; }
