/* awaSCII+ v5.0.666 - Style CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a35 100%);
    color: #00ff00;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #00ff00;
    border-radius: 10px;
    background: rgba(0, 255, 0, 0.05);
}

.ascii-art {
    font-size: 12px;
    line-height: 1;
    white-space: pre;
    color: #00ffff;
    margin-bottom: 15px;
    text-align: center;
    overflow: hidden;
}

.version {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b00;
    margin: 10px 0;
}

.author {
    font-size: 14px;
    color: #888;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.panel {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
}

.panel h2 {
    color: #00ffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ffff00;
    font-weight: bold;
}

.textarea-container {
    position: relative;
    display: flex;
    align-items: stretch;
}

textarea {
    width: 100%;
    height: 120px;
    background: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

.textarea-container textarea {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.buttons-container {
    display: flex;
    flex-direction: column;
}

textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.copy-btn, .speech-btn {
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    border-left: none;
    flex: 1;
}

.copy-btn {
    background: linear-gradient(45deg, #00ffff, #0088cc);
    border: 1px solid #00ffff;
    border-top-right-radius: 5px;
    border-bottom: none;
}

.speech-btn {
    background: linear-gradient(45deg, #ff6b00, #ff8f00);
    border: 1px solid #ff6b00;
    border-bottom-right-radius: 5px;
    border-top: none;
}

.copy-btn:hover {
    background: linear-gradient(45deg, #00ccff, #0099dd);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 255, 255, 0.4);
}

.copy-btn:active {
    transform: scale(0.95);
}

.speech-btn:hover {
    background: linear-gradient(45deg, #ff8f00, #ffab00);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.4);
}

.speech-btn:active {
    transform: scale(0.95);
}

.speech-btn.speaking {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    animation: speakingPulse 1s infinite;
}

@keyframes speakingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.copy-btn.copied {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-icon, .speech-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.copy-text, .speech-text {
    font-size: 10px;
    line-height: 1;
}

.btn {
    background: linear-gradient(45deg, #ff6b00, #ff8f00);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.btn:hover {
    background: linear-gradient(45deg, #ff8f00, #ffab00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.stats {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #555;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #555;
    color: #888;
    font-size: 14px;
}

.footer-link {
    color: #00ffff;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    filter: brightness(1.2) saturate(1.1);
}

.footer-icon:first-of-type {
    margin-right: 8px;
}

.footer-icon:last-of-type {
    margin-left: 8px;
}

.goat-container {
    text-align: center;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a35 50%, #2a1a45 100%);
    animation: goatGlow 3s ease-in-out infinite alternate;
}

@keyframes goatGlow {
    0% { box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1); }
    100% { box-shadow: inset 0 0 40px rgba(0, 255, 255, 0.2); }
}

.ascii-art-goat {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    color: #00ffff;
    white-space: pre;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #00ffff;
    animation: goatBounce 2s ease-in-out infinite;
}

@keyframes goatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.goat-title {
    font-size: 48px;
    color: #ff6b00;
    margin: 20px 0;
    text-shadow: 0 0 20px #ff6b00;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.goat-subtitle {
    font-size: 24px;
    color: #00ff00;
    margin-bottom: 30px;
    font-weight: bold;
}

.goat-description {
    max-width: 600px;
    margin: 0 auto 40px;
}

.goat-description p {
    font-size: 18px;
    color: #ffffff;
    margin: 15px 0;
    line-height: 1.6;
}

.awa-encoded {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0 10px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 14px;
}

.awa-decoded {
    font-size: 20px;
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 30px;
}

.goat-btn {
    background: linear-gradient(45deg, #ff6b00, #ff8f00);
    color: white;
    border: 2px solid #ff6b00;
    padding: 15px 40px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.goat-btn:hover {
    background: linear-gradient(45deg, #ff8f00, #ffab00);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.goat-btn:active {
    transform: translateY(0);
}

.awa-shell {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 70vh;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #00ff00;
    border-radius: 10px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.5);
}

.awa-shell-header {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px 7px 0 0;
    color: #000;
    font-weight: bold;
}

.awa-shell-close {
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background 0.2s;
}

.awa-shell-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.awa-shell-output {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 14px;
    background: #000;
}

.awa-shell-banner {
    color: #00ffff;
    white-space: pre;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Courier New', Courier, monospace;
}

.awa-shell-line {
    margin: 5px 0;
    color: #00ff00;
}

.awa-shell-prompt {
    color: #00ff00;
    font-weight: bold;
    margin-right: 5px;
}

.awa-shell-result {
    color: #ffffff;
    white-space: pre-wrap;
    margin: 5px 0 10px 0;
    padding-left: 2px;
}

.awa-shell-error {
    color: #ff0000;
    margin: 5px 0;
}

.awa-shell-input-line {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #00ff00;
    display: flex;
    align-items: center;
    border-radius: 0 0 7px 7px;
}

.awa-shell-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    margin-left: 5px;
}

.awa-shell-input::selection {
    background: #00ff00;
    color: #000;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .ascii-art {
        font-size: 8px;
    }
    
    .copy-btn, .speech-btn {
        min-width: 60px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .copy-icon, .speech-icon {
        font-size: 14px;
    }
    
    .copy-text, .speech-text {
        font-size: 9px;
    }
    
    .ascii-art-goat {
        font-size: 18px;
    }
    
    .goat-title {
        font-size: 32px;
    }
    
    .goat-subtitle {
        font-size: 18px;
    }
    
    .goat-description p {
        font-size: 16px;
    }
    
    .awa-shell {
        width: 95%;
        height: 80vh;
    }
    
    .awa-shell-banner {
        font-size: 8px;
    }
    
    .awa-shell-output {
        font-size: 12px;
    }
    
    .awa-shell-input {
        font-size: 12px;
    }
}
