/* 時間戳轉換器專用樣式 */

/* 當前時間顯示區 */
.current-time-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    color: white;
}

.current-time-section h3 {
    margin: 0 0 1.5rem 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.current-time-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.time-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.time-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.time-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.time-value {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    margin-bottom: 1rem;
    word-break: break-all;
    line-height: 1.4;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 轉換器區塊 */
.converter-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg, white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.converter-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.converter-container {
    display: grid;
    gap: 2rem;
}

/* 輸入組 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.input-with-buttons {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.converter-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: var(--card-bg, white);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.converter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.input-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-small {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    background: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-small:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

/* 格式選擇 */
.input-hint {
    margin-top: 0.5rem;
}

.format-toggle {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.format-toggle label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.format-toggle input[type="radio"] {
    accent-color: var(--primary-color);
}

/* 日期時間輸入 */
.datetime-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* 結果顯示 */
.results-group {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.results-group h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.result-grid {
    display: grid;
    gap: 1rem;
}

.result-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg, white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.result-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.result-value {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-color);
    word-break: break-all;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 4px;
}

.result-copy {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.result-copy:hover {
    background: #e68a00;
    transform: scale(1.05);
}

/* 批量轉換區 */
.batch-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg, white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.batch-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.batch-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.batch-input label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: block;
}

.batch-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: var(--card-bg, white);
    color: var(--text-color);
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}

.batch-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.batch-controls {
    display: flex;
    gap: 1rem;
}

.batch-results h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.batch-output {
    padding: 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    color: var(--text-color);
}

.batch-actions {
    display: flex;
    gap: 1rem;
}

/* 常用範例區 */
.examples-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.examples-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.example-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--card-bg, white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.example-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.example-icon {
    font-size: 1.5rem;
}

.example-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.example-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 按鈕樣式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    background: var(--primary-color);
    color: white;
}

.btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

.btn:disabled {
    background: var(--border-color);
    color: var(--text-color);
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .current-time-display {
        grid-template-columns: 1fr;
    }
    
    .time-card {
        padding: 1rem;
    }
    
    .converter-container {
        gap: 1.5rem;
    }
    
    .input-with-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .input-buttons {
        justify-content: center;
    }
    
    .datetime-inputs {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .result-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .result-label {
        font-size: 0.85rem;
    }
    
    .batch-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .batch-controls {
        flex-direction: column;
    }
    
    .batch-actions {
        flex-direction: column;
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .example-btn {
        padding: 0.75rem;
        gap: 0.25rem;
    }
    
    .example-icon {
        font-size: 1.2rem;
    }
    
    .example-name {
        font-size: 0.85rem;
    }
    
    .example-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .current-time-section {
        padding: 1.5rem;
    }
    
    .converter-section {
        padding: 1.5rem;
    }
    
    .batch-section {
        padding: 1.5rem;
    }
    
    .time-value {
        font-size: 1rem;
    }
    
    .converter-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .result-value {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .format-toggle {
        flex-direction: column;
        gap: 0.75rem;
    }
}