/**
 * Timestamp Converter Styles
 * 타임스탬프 변환기 전용 스타일
 *
 * @package Zipper
 */

#timestampConverter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#timestampConverter > * {
    box-sizing: border-box;
}

.timestamp-lead,
.timestamp-card-desc,
.timestamp-section-desc,
.panel-help,
.current-time-side-note,
.timestamp-empty-card p,
.timestamp-result-note,
.timestamp-summary-sub,
.timestamp-detail-sub {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5f5a56;
}

.timestamp-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    color: #8e6b00;
    font-size: 11px;
    font-weight: 700;
}

.timestamp-summary-sub,
.timestamp-detail-sub {
    display: none;
}

.current-time-section,
.timestamp-workspace,
.result-display {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #ebe5d8;
    background: linear-gradient(180deg, #fffdfa 0%, #faf7f2 100%);
    box-shadow: 0 16px 34px rgba(62, 42, 15, 0.06);
}

.current-time-section {
    gap: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(255, 255, 255, 0.96) 62%, rgba(250, 247, 242, 0.96) 100%);
    border-color: rgba(212, 175, 55, 0.24);
}

.current-time-top,
.timestamp-section-head,
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.current-time-copy,
.timestamp-workspace,
.converter-panel,
.result-main,
.timestamp-empty-card,
.timestamp-result-card,
.timestamp-detail-card,
.timestamp-summary-card {
    min-width: 0;
}

.timestamp-card-title,
.timestamp-section-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    color: #2d2a26;
}

.current-time-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.9fr);
    gap: 12px;
    align-items: stretch;
}

.current-time-main,
.current-time-side,
.converter-panel,
.timestamp-detail-card,
.timestamp-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(232, 225, 213, 0.95);
}

.current-time-main {
    justify-content: center;
}

.current-time-label,
.current-time-side-label,
.quick-select-label,
.timestamp-summary-label,
.timestamp-detail-label,
.timestamp-result-eyebrow,
.timestamp-result-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #7b746b;
}

.current-time-timestamp,
.current-timestamp,
.timestamp-summary-value,
.timestamp-detail-value,
.timestamp-result-monospace {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.current-timestamp {
    font-size: clamp(24px, 4.2vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #2d2a26;
    word-break: break-all;
}

.current-datetime {
    font-size: 13px;
    line-height: 1.5;
    color: #5f5a56;
}

.current-time-side-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.current-time-side-value,
.timestamp-status-note,
.timestamp-result-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e8e1d4;
    color: #6b6256;
    font-size: 11px;
    font-weight: 700;
}

.current-time-actions,
.panel-actions,
.quick-select-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.copy-current-btn,
.panel-btn,
.quick-btn {
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid #eadfcb;
    background: #fff;
    color: #4f473f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.copy-current-btn,
.panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
}

.copy-current-btn:hover,
.panel-btn:hover,
.quick-btn:hover,
.unit-tab:hover,
.arrow-btn:hover {
    transform: translateY(-1px);
    border-color: #d4af37;
    box-shadow: 0 10px 18px rgba(212, 175, 55, 0.14);
}

.copy-current-btn {
    background: linear-gradient(135deg, #fff7dc 0%, #fff 100%);
}

.copy-current-btn i,
.panel-btn i,
.quick-btn i,
.panel-label i,
.current-time-label i {
    color: #d4af37;
}

.unit-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.unit-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 72px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #eadfcb;
    background: #fff;
    color: #4f473f;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.unit-tab small {
    font-size: 11px;
    font-weight: 600;
    color: #8c8579;
}

.unit-tab i {
    font-size: 16px;
    color: #d4af37;
}

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

.unit-tab.active i,
.unit-tab.active small {
    color: inherit;
}

.timestamp-status-note,
.timestamp-result-state {
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.converter-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.converter-panel {
    gap: 8px;
}

.panel-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
}

.panel-help {
    margin-top: 4px;
}

.timestamp-input,
.datetime-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #e5ded2;
    border-radius: 14px;
    background: #fff;
    color: #2d2a26;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.timestamp-input {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.datetime-input-group,
.datetime-row {
    display: grid;
    gap: 10px;
}

.datetime-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.timestamp-input::placeholder,
.datetime-input::placeholder {
    color: #9a9288;
}

.converter-arrow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
}

.converter-arrow-label {
    display: inline-flex;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #8c8579;
}

.arrow-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #eadfcb;
    background: linear-gradient(180deg, #fff 0%, #faf7f2 100%);
    color: #4f473f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.arrow-btn i {
    font-size: 20px;
    color: #d4af37;
}

.quick-select-section {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eee4d7;
}

.quick-btn {
    padding: 7px 10px;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #fff7dc 0%, #fff 100%);
    color: #2d2a26;
}

.result-display {
    position: relative;
    overflow: hidden;
}

.result-main,
.timestamp-empty-card,
.timestamp-result-card {
    display: grid;
    gap: 12px;
}

.timestamp-empty-card,
.timestamp-result-card {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ece2d5;
    background: #fff;
}

.timestamp-empty-card {
    justify-items: flex-start;
}

.timestamp-empty-card i {
    font-size: 18px;
    color: #d4af37;
}

.timestamp-empty-card strong,
.timestamp-result-title,
.timestamp-error-title {
    font-size: 18px;
    line-height: 1.35;
    color: #2d2a26;
}

.timestamp-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timestamp-result-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f8f2e1;
    color: #8e6b00;
    font-size: 12px;
    font-weight: 700;
}

.timestamp-result-main-value {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #2d2a26;
}

.timestamp-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.timestamp-summary-grid:empty,
.result-details:empty {
    display: none;
}

.timestamp-summary-card {
    gap: 4px;
}

.timestamp-summary-value,
.timestamp-detail-value {
    font-size: 15px;
    line-height: 1.35;
    color: #2d2a26;
    word-break: break-all;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.timestamp-detail-card {
    gap: 4px;
}

.timestamp-detail-card.is-wide {
    grid-column: span 3;
}

.result-display.is-success {
    border-color: rgba(212, 175, 55, 0.26);
    background: linear-gradient(180deg, #fffdfa 0%, #f9f6ef 100%);
}

.result-display.is-empty .timestamp-result-state {
    background: #fff;
    color: #6b6256;
}

.result-display.is-success .timestamp-result-state {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.24);
    color: #8e6b00;
}

.result-display.is-error {
    border-color: rgba(220, 50, 50, 0.22);
    background: linear-gradient(180deg, #fff9f8 0%, #fff4f3 100%);
}

.result-display.is-error .timestamp-result-state {
    background: rgba(220, 50, 50, 0.12);
    border-color: rgba(220, 50, 50, 0.18);
    color: #b53636;
}

.timestamp-error-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(220, 50, 50, 0.18);
    background: #fff;
}

.timestamp-error-card i {
    font-size: 18px;
    color: #dc3232;
}

.timestamp-error-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #7b4f4f;
}

.input-error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.1) !important;
}

@media (max-width: 900px) {
    .current-time-grid,
    .converter-section {
        grid-template-columns: 1fr;
    }

    .timestamp-summary-grid,
    .result-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .converter-arrow {
        min-width: 0;
        flex-direction: row;
        align-items: stretch;
    }

    .converter-arrow-label {
        display: none;
    }

    .arrow-btn {
        flex: 1;
        min-height: 46px;
        flex-direction: row;
    }

    .timestamp-detail-card.is-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .current-time-section,
    .timestamp-workspace,
    .result-display {
        padding: 12px;
    }

    .current-time-top,
    .timestamp-section-head,
    .panel-header,
    .current-time-side-head {
        flex-direction: column;
        align-items: stretch;
    }

    .current-time-actions,
    .panel-actions {
        width: 100%;
    }

    .unit-tabs,
    .datetime-row,
    .result-details {
        grid-template-columns: 1fr;
    }

    .timestamp-card-title,
    .timestamp-section-title {
        font-size: 18px;
    }

    .current-timestamp {
        font-size: clamp(22px, 9vw, 28px);
    }

    .timestamp-result-main-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #timestampConverter {
        gap: 12px;
    }

    .current-time-section,
    .timestamp-workspace,
    .result-display,
    .timestamp-empty-card,
    .timestamp-result-card,
    .timestamp-error-card,
    .current-time-main,
    .current-time-side,
    .converter-panel,
    .quick-select-section,
    .timestamp-summary-card,
    .timestamp-detail-card {
        padding: 12px;
    }

    .timestamp-lead,
    .timestamp-card-desc,
    .timestamp-section-desc,
    .panel-help,
    .current-time-side-note,
    .timestamp-empty-card p,
    .timestamp-result-note,
    .timestamp-summary-sub,
    .timestamp-detail-sub {
        font-size: 12px;
    }

    .copy-current-btn,
    .panel-btn,
    .quick-btn,
    .arrow-btn {
        width: 100%;
        min-height: 34px;
    }

    .panel-btn,
    .copy-current-btn,
    .arrow-btn {
        justify-content: center;
    }

    .panel-actions,
    .current-time-actions {
        flex-direction: column;
    }

    .timestamp-input,
    .datetime-input {
        font-size: 15px;
        padding: 11px 12px;
    }

    .timestamp-empty-card strong,
    .timestamp-result-title,
    .timestamp-error-title {
        font-size: 16px;
    }

    .timestamp-summary-value,
    .timestamp-detail-value {
        font-size: 14px;
    }
}
