/* TimestampConverter.css - Calculator-specific styles ONLY */
/* ⚠️ DO NOT redefine global classes (.form-input, .btn-custom, .glass-card, etc.) */
/* See GLOBAL_CSS_CLASSES.md for reference */

/* ==================== Timestamp Display ==================== */

/* Large live timestamp counter */
.live-timestamp {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: livePulse 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.live-timestamp:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.01);
    }
}

/* Timestamp result display - monospace */
.timestamp-display {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

.timestamp-display:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

/* ==================== Precision Selector ==================== */

.precision-selector {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.precision-btn {
    padding: 0.65rem 1.25rem;
    background: rgba(102, 126, 234, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.08);
}

.precision-btn:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.precision-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* ==================== Result Items (NumberBaseConverter style) ==================== */

.result-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.result-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
}

.result-label i {
    font-size: 1.1rem;
    color: #667eea;
    opacity: 0.9;
}

.result-value {
    font-size: 1rem;
    font-weight: 600;
    color: #48bb78;
    word-break: break-all;
}

.result-value.timestamp-mono {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    color: #667eea;
    font-size: 1.05rem;
}

.relative-time-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.15));
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: 24px;
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
    transition: all 0.3s ease;
}

.relative-time-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

/* Copy Button (Mini) */
.btn-copy-mini {
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.08);
    border: 1.5px solid rgba(102, 126, 234, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #667eea;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.08);
}

.btn-copy-mini:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.15);
}

.btn-copy-mini.copy-success {
    background: rgba(72, 187, 120, 0.15);
    border-color: rgba(72, 187, 120, 0.4);
    color: #48bb78;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.2);
}

/* Input Group (NumberBaseConverter style) */
.input-group-custom {
    margin-bottom: 1.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 0.6rem;
}

.input-label i {
    color: #667eea;
    font-size: 1.1rem;
}

.input-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
    padding-left: 1.7rem;
}

/* ==================== Time Info Display ==================== */

.time-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.time-info-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.time-info-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
}

.time-info-value {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: #48bb78;
}

/* ==================== Copy Button Animation ==================== */

.copy-success {
    animation: copyPulse 0.5s ease;
}

@keyframes copyPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: rgba(72, 187, 120, 0.3);
    }
}


/* ==================== Y2K38 Warning Alert ==================== */

.y2k38-warning {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.08));
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    transition: all 0.3s ease;
}

.y2k38-warning:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.2);
}

.y2k38-warning i {
    font-size: 1.75rem;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==================== Chart Container ==================== */

.timeline-chart-container {
    height: 200px;
    padding: 1rem 0;
}

/* ==================== Special Timestamps ==================== */

.special-timestamp-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.special-timestamp-btn {
    flex: 1 1 calc(33.333% - 0.75rem);
    min-width: 150px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.special-timestamp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
    .live-timestamp {
        font-size: 1.8rem;
        padding: 1.5rem 0.5rem;
    }

    .timestamp-display {
        font-size: 1.4rem;
        padding: 0.75rem;
    }

    .precision-selector {
        flex-direction: column;
    }

    .precision-btn {
        width: 100%;
    }

    .special-timestamp-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }

    /* Result items for mobile */
    .result-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem;
    }

    .result-label {
        grid-column: 1 / -1;
    }

    .result-value {
        font-size: 0.85rem;
    }

    .btn-copy-mini {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .live-timestamp {
        font-size: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .timestamp-display {
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    .time-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .result-label {
        font-size: 0.85rem;
    }

    .result-value {
        font-size: 0.8rem;
    }
}
