/* Discord Timestamp Generator */

.tg-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 100px 20px 80px;
}

/* Hero */
.tg-hero {
    text-align: center;
    margin-bottom: 40px;
}

.tg-hero-badge {
    display: inline-block;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.tg-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.15;
}

.tg-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.tg-hero p code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    color: #a5b4fc;
}

/* Main Card */
.tg-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
}

/* Input Section */
.tg-input-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 16px;
    margin-bottom: 20px;
}

.tg-unix-group {
    grid-column: 1 / -1;
}

.tg-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tg-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.tg-input-group input,
.tg-input-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
}

.tg-input-group input[type="number"] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
}

.tg-input-group input:focus,
.tg-input-group select:focus {
    border-color: var(--primary-color);
}

.tg-input-group select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

/* Quick buttons */
.tg-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tg-quick-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.18s;
}

.tg-quick-btn:hover {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.4);
    color: var(--text-primary);
}

/* Unix display bar */
.tg-unix-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(88, 101, 242, 0.06);
    border: 1px solid rgba(88, 101, 242, 0.18);
    border-radius: 10px;
    padding: 12px 16px;
}

.tg-unix-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tg-unix-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 500;
    color: #a5b4fc;
    letter-spacing: 0.02em;
}

/* Formats Grid */
.tg-formats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.tg-format-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.tg-format-card:hover {
    border-color: rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.04);
}

.tg-format-card--wide {
    grid-column: span 2;
}

.tg-format-card--relative {
    border-left: 3px solid rgba(88, 101, 242, 0.4);
}

.tg-format-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tg-format-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tg-format-flag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: rgba(88, 101, 242, 0.12);
    color: #a5b4fc;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    flex-shrink: 0;
}

.tg-format-preview {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 1.4em;
}

.tg-format-card--relative .tg-format-preview {
    color: #818cf8;
}

.tg-format-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.tg-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 7px;
    border-radius: 5px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.tg-copy-btn {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 7px;
    color: #a5b4fc;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tg-copy-btn:hover {
    background: rgba(88, 101, 242, 0.22);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.tg-copy-btn.copied {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Copy All */
.tg-copy-all-row {
    text-align: center;
    margin-bottom: 32px;
}

.tg-copy-all-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 32px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.tg-copy-all-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.tg-copy-all-btn:active {
    transform: translateY(0);
}

/* Info Box */
.tg-info-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px 26px;
}

.tg-info-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.tg-info-box p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.tg-info-box code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
    color: #a5b4fc;
}

/* Toast */
.tg-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #22c55e;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9999;
    white-space: nowrap;
}

.tg-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 720px) {
    .tg-formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-format-card--wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .tg-container {
        padding: 80px 14px 60px;
    }

    .tg-input-section {
        grid-template-columns: 1fr 1fr;
    }

    .tg-unix-group {
        grid-column: 1 / -1;
    }

    .tg-card {
        padding: 20px 16px;
    }
}

@media (max-width: 400px) {
    .tg-formats-grid {
        grid-template-columns: 1fr;
    }

    .tg-format-card--wide {
        grid-column: span 1;
    }

    .tg-input-section {
        grid-template-columns: 1fr;
    }
}
