/**
 * Gallon Barrel Converter Styles
 * 갤런 배럴 변환기 전용 스타일
 *
 * @package Zipper
 */

/* 변환 방향 탭 */
.gbc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.gbc-tab {
    flex: 1;
    padding: 12px 20px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gbc-tab:hover {
    background: #f5f3f0;
    border-color: #d4af37;
}

.gbc-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
}

.gbc-tab i {
    font-size: 16px;
}

/* 배럴 유형 선택 */
.gbc-barrel-type {
    margin-bottom: 20px;
}

.gbc-barrel-type label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 8px;
}

.gbc-barrel-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gbc-barrel-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

/* 변환 영역 */
.gbc-converter-area {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 24px;
}

.gbc-panel {
    flex: 1;
    min-width: 0;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.gbc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gbc-panel-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
}

.gbc-panel-actions {
    display: flex;
    gap: 8px;
}

.gbc-action-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    font-size: 13px;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gbc-action-btn:hover {
    background: #fff;
    border-color: #d4af37;
    color: #d4af37;
}

.gbc-action-btn i {
    font-size: 14px;
}

/* 입력 필드 */
.gbc-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gbc-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #fff;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gbc-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.gbc-input::placeholder {
    color: #8c8579;
    font-weight: 400;
}

.gbc-unit-label {
    font-size: 13px;
    color: #5f5a56;
    text-align: right;
}

/* 변환 화살표 */
.gbc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.gbc-arrow i {
    font-size: 24px;
    color: #d4af37;
}

/* 결과 영역 */
.gbc-result-panel {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.gbc-result-value {
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
    word-break: break-all;
}

.gbc-result-liter {
    font-size: 14px;
    color: #5f5a56;
    padding: 8px 12px;
    background: #faf9f7;
    border-radius: 6px;
    margin-top: 12px;
}

.gbc-result-liter strong {
    color: #2d2a26;
}

/* 변환 정보 */
.gbc-info {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #faf9f7;
    border-radius: 12px;
    margin-bottom: 24px;
}

.gbc-info-item {
    flex: 1;
    text-align: center;
}

.gbc-info-value {
    font-size: 18px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 4px;
}

.gbc-info-label {
    font-size: 13px;
    color: #5f5a56;
}

/* 변환표 섹션 */
.gbc-table-section {
    margin-top: 24px;
}

.gbc-table-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gbc-table-title i {
    color: #d4af37;
}

.gbc-table-container {
    overflow-x: auto;
}

.gbc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gbc-table th,
.gbc-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #e8e4dc;
}

.gbc-table th {
    background: #faf9f7;
    font-weight: 600;
    color: #2d2a26;
    text-align: center;
}

.gbc-table th:first-child,
.gbc-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #2d2a26;
}

.gbc-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.gbc-table td {
    color: #5f5a56;
}

/* 배럴 유형 설명 */
.gbc-type-info {
    margin-top: 24px;
    padding: 16px;
    background: #faf9f7;
    border-radius: 12px;
}

.gbc-type-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 8px;
}

.gbc-type-info-desc {
    font-size: 13px;
    color: #5f5a56;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .gbc-tabs {
        flex-direction: column;
    }

    .gbc-converter-area {
        flex-direction: column;
    }

    .gbc-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .gbc-info {
        flex-wrap: wrap;
    }

    .gbc-info-item {
        min-width: calc(50% - 8px);
    }

    .gbc-table th,
    .gbc-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gbc-input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .gbc-result-value {
        font-size: 20px;
    }

    .gbc-info-item {
        min-width: 100%;
    }
}
