/**
 * 自転車の適正空気圧計算ツール 専用スタイル
 */

/* 計算結果のレイアウト調整 */
.result-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-bottom: 0.8rem;
}

.result-wheel {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.result-divider {
    width: 1px;
    height: 50px;
    background: var(--divider);
    margin: 0 1rem;
}

.wheel-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.pressure-values {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.15rem;
}

.pressure-bar {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.unit-bar {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 0.3rem;
}

.divider-slash {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 0.2rem;
}

.pressure-psi {
    font-size: 1.6rem;
    font-weight: 800;
    color: #b2ff59;
    line-height: 1;
}

.unit-psi {
    font-size: 0.8rem;
    color: #b2ff59;
    font-weight: 600;
}

/* 安全警告テキスト */
.safety-warning {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--divider);
    font-size: 0.75rem;
    color: #ff4081;
    line-height: 1.4;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* メインコンテナ */
.pressure-container {
    padding: 1.5rem 1rem 3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 詳細設定トグル用の境界線 */
.detail-toggle-group {
    margin-top: 0.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--divider);
}

/* コントロールカード */
.controls-card {
    background: var(--surface-color);
    border: 1px solid var(--divider);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 入力ヘッダー */
.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.control-header label {
    margin-bottom: 0;
    font-weight: 600;
}

/* 数値入力ボックス */
.input-unit-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    height: 36px;
}

.input-unit-wrap input[type="number"] {
    width: 50px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    text-align: right;
    outline: none;
    -moz-appearance: textfield;
}

.input-unit-wrap input[type="number"]::-webkit-outer-spin-button,
.input-unit-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-unit-wrap .unit-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 0.2rem;
    font-weight: 600;
}

/* スライダー */
.slider-container {
    width: 100%;
}

.slider-container .styled-slider {
    width: 100%;
    height: 8px;
    background: var(--divider);
    border-radius: 5px;
    outline: none;
    margin: 0.5rem 0;
}

/* ラジオタイルUI */
.radio-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.tile-label {
    cursor: pointer;
}

.tile-label input[type="radio"] {
    display: none;
}

.tile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: var(--btn-bg);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 0.8rem 0.5rem;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 48px;
}

.tile-icon {
    font-size: 1.4rem;
}

.tile-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tile-label input[type="radio"]:checked + .tile-content {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--primary-color);
}

.tile-label input[type="radio"]:checked + .tile-content .tile-text {
    color: var(--text-primary);
}

/* 補足注記 */
.input-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    line-height: 1.3;
}

/* 詳細モード用コンテナ */
.detail-params-container {
    border-top: 1px solid var(--divider);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-divider-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* 重量配分の割合プレビュー */
.distribution-preview {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    background: var(--bg-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px dashed var(--divider);
}

.distribution-preview b {
    color: var(--primary-color);
}

.distribution-preview span:last-child b {
    color: #b2ff59;
}

/* アニメーション用トランジション */
#detail-mode-params {
    transition: all 0.3s ease-out;
}

/* レレスポンシブ対応 */
@media (max-width: 480px) {
    .result-layout {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .result-divider {
        width: 80%;
        height: 1px;
        margin: 0.4rem auto;
    }
    
    .controls-card {
        padding: 1.2rem 1rem;
    }
    
    .radio-tiles {
        gap: 0.4rem;
    }
    
    .tile-content {
        padding: 0.6rem 0.3rem;
        min-height: 44px;
    }
    
    .tile-icon {
        font-size: 1.2rem;
    }
    
    .tile-text {
        font-size: 0.75rem;
    }
}
