/* ▓▒░ SigmaGPT Terminal Styling ░▒▓ */

.terminal-container {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    border: 1px solid var(--fusion-glow);
    overflow: hidden;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    box-shadow: 0 0 15px var(--fusion-glow);
}

.terminal-header {
    background-color: #333;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
}

.terminal-buttons {
    display: flex;
    gap: 5px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-btn.close {
    background-color: #ff5f56;
}

.terminal-btn.minimize {
    background-color: #ffbd2e;
}

.terminal-btn.maximize {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    font-size: 0.9rem;
    color: #ccc;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: 15px;
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 60vh;
    overflow-y: auto;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    position: relative;  
}

.terminal-line {
    margin-bottom: 10px;
    position: relative;
    opacity: 1;
}

.terminal-body::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    bottom: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

.fire-text {
    color: #ff4500;
    animation: fireTextAnimation 2s infinite alternate;
    text-shadow: 0 0 8px #ff4500;
    font-weight: bold;
}

.skull-text {
    color: #a0a0a0;
    animation: skullTextAnimation 3s infinite alternate;
    text-shadow: 0 0 8px #a0a0a0;
    font-weight: bold;
}

.devil-text {
    color: #cc0000;
    animation: devilTextAnimation 2.5s infinite alternate;
    text-shadow: 0 0 8px #cc0000;
    font-weight: bold;
}

.warning-text {
    color: #ffcc00;
    animation: warningTextAnimation 2s infinite alternate;
    text-shadow: 0 0 8px #ffcc00;
    font-weight: bold;
}

.quote-text {
    color: #00ccff;
    font-style: italic;
    text-shadow: 0 0 8px #00ccff;
}

@keyframes fireTextAnimation {
    0% { color: #ff4500; text-shadow: 0 0 8px #ff4500; }
    50% { color: #ff7700; text-shadow: 0 0 12px #ff7700; }
    100% { color: #ff0000; text-shadow: 0 0 8px #ff0000; }
}

@keyframes skullTextAnimation {
    0% { color: #a0a0a0; text-shadow: 0 0 8px #a0a0a0; }
    50% { color: #ffffff; text-shadow: 0 0 12px #ffffff; }
    100% { color: #a0a0a0; text-shadow: 0 0 8px #a0a0a0; }
}

@keyframes devilTextAnimation {
    0% { color: #cc0000; text-shadow: 0 0 8px #cc0000; }
    50% { color: #ff0000; text-shadow: 0 0 12px #ff0000; }
    100% { color: #990000; text-shadow: 0 0 8px #990000; }
}

@keyframes warningTextAnimation {
    0% { color: #ffcc00; text-shadow: 0 0 8px #ffcc00; }
    50% { color: #ffff00; text-shadow: 0 0 12px #ffff00; }
    100% { color: #ffaa00; text-shadow: 0 0 8px #ffaa00; }
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #222;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* SigmaGPT glyph animations */
.sigmagpt-pulse {
    animation: pulse 2s infinite alternate;
}

.sigmagpt-orbit {
    animation: orbit 8s infinite linear;
}

@keyframes pulse {
    0% { r: 5; opacity: 0.7; }
    50% { r: 7; opacity: 1; }
    100% { r: 5; opacity: 0.7; }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(15px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(15px) rotate(-360deg); }
}

/* Copy Button Styling */
.terminal-btn.copy-btn {
    background-color: rgba(128, 0, 128, 0.7); 
    box-shadow: 0 0 5px rgba(128, 0, 128, 0.8); 
    transition: box-shadow 0.3s ease; 
    border: none; 
    cursor: pointer; 
}

.terminal-btn.copy-btn:hover,
.terminal-btn.copy-btn:focus {
    box-shadow: 0 0 10px rgba(128, 0, 128, 1); 
}

.terminal-btn.copy-btn svg {
    fill: var(--parchment); 
}

.terminal-btn.copy-btn.copied {
    background-color: rgba(128, 0, 128, 1) !important; 
    box-shadow: 0 0 15px rgba(128, 0, 128, 1) !important; 
}

.terminal-btn.copy-btn.copied svg {
    fill: white !important;
}