/* Filename: /assets/css/utils-text-code/tnc-global.css
   Category: Text & Code Utilities (Global Styles)
   Updated: Grid fixed to 3 columns, Cobalt Hover added.
*/

/* --- 1. TOOLBAR (Stats, Copy, Clear) --- */
.jux-tnc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 15px;
    color: var(--text-color, #fff);
}

.jux-tnc-stats {
    font-family: monospace;
    color: var(--accent-color, #00ff88);
}

/* --- 2. INPUT AREAS --- */
.jux-tnc-input {
    width: 100%;
    height: 250px; 
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Standard glass border */
    border-radius: 8px;
    padding: 15px;
    color: var(--text-color, #fff);
    font-size: 1rem;
    font-family: 'Inter', sans-serif; 
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.jux-tnc-input:focus {
    border-color: var(--accent-color, #00ff88);
}

/* --- 3. ACTION GRID (The Fix) --- */
.jux-tnc-actions {
    display: grid;
    /* Forces 3 columns explicitly */
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
}

/* --- 4. BUTTONS --- */
.jux-tnc-btn {
    background: rgba(255, 255, 255, 0.05);
    
    /* Static State: 2px border (subtle) to prevent jumping on hover */
    border: 2px solid rgba(255, 255, 255, 0.08); 
    
    padding: 12px;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Center text just in case */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* HOVER STATE: Cobalt Blue Border */
.jux-tnc-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    /* Cobalt Blue (#0047AB) */
    border-color: #0047AB; 
    box-shadow: 0 0 15px rgba(0, 71, 171, 0.3); /* Slight glow match */
    transform: translateY(-2px);
}

/* Ghost Buttons (Clear/Copy) - Keeping these subtle */
.jux-tnc-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-color, #ddd);
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.jux-tnc-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* --- 5. MOBILE RESPONSIVENESS --- */
@media (max-width: 600px) {
    .jux-tnc-actions {
        /* On mobile, switch to 2 columns for readability */
        grid-template-columns: repeat(2, 1fr); 
    }
    .jux-tnc-input {
        height: 200px;
    }
}