/**
 * Pokemon Type Effectiveness Styles
 */

.poke-type-effectiveness {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.effectiveness-row {
    border-bottom: 1px solid #e5e7eb;
}

.effectiveness-row:last-child {
    border-bottom: none;
}

.eff-label {
    padding: 12px 16px;
    font-weight: 600;
    width: 140px;
    vertical-align: middle;
    background-color: #f9fafb;
    font-size: 14px;
    text-align: center; /* 中央寄せ */
}

/* ラベルの文字色 */
.eff-4x .eff-label,
.eff-2x .eff-label {
    color: #DC2626; /* 赤 */
}

.eff-half .eff-label,
.eff-quarter .eff-label {
    color: #2563EB; /* 青 */
}

.eff-immune .eff-label {
    color: #000000; /* 黒 */
}

.eff-types {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.eff-empty {
    color: #9CA3AF;
    font-size: 16px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}

.type-badge:hover {
    transform: translateY(-2px);
}

.type-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.type-name {
    white-space: nowrap;
}

/* 倍率ごとの背景色 */
.eff-4x .type-badge {
    background-color: #B91C1C;
    color: white;
}

.eff-2x .type-badge {
    background-color: #F87171;
    color: white;
}

.eff-half .type-badge {
    background-color: #BFDBFE;
    color: #1E40AF;
}

.eff-quarter .type-badge {
    background-color: #60A5FA;
    color: white;
}

.eff-immune .type-badge {
    background-color: #D1D5DB;
    color: #374151;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .poke-type-effectiveness {
        font-size: 13px;
    }
    
    .eff-label {
        width: 100px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .eff-types {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .type-badge {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .type-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .eff-label {
        display: block;
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .eff-types {
        display: block;
        width: 100%;
    }
    
    .effectiveness-row {
        display: block;
    }
}