/* styles/shavian-translator.css */

:root {
    --shavian-primary: #2c5282; /* Deep blue for a classic, scholarly feel */
    --shavian-secondary: #3182ce; /* A brighter blue for accents */
    --shavian-accent: #f6ad55; /* Warm orange for contrast and calls to action */
    --shavian-text-dark: #1a202c;
    --shavian-text-light: #f7fafc;
    --shavian-bg-light: #edf2f7; /* Light gray-blue background */
    --shavian-bg-dark: #1a202c; /* Very dark blue for panels */
    --shavian-border: #4a5568;
}

body {
    background-color: var(--shavian-bg-dark);
    color: var(--shavian-text-light);
    font-family: 'Inter', sans-serif;
}

.hero {
    background: linear-gradient(135deg, var(--shavian-bg-dark) 0%, #2d3748 100%);
    color: var(--shavian-text-light);
    padding: 4rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--shavian-border);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

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

.translator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .translator-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.panel {
    background-color: #2d3748;
    color: var(--shavian-text-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--shavian-border);
    display: flex;
    flex-direction: column;
}

.panel h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--shavian-accent);
    text-align: center;
    font-weight: 700;
}

.shavian-textarea {
    width: 100%;
    min-height: 250px;
    padding: 1rem;
    border: 2px solid var(--shavian-border);
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    background-color: var(--shavian-bg-light);
    color: var(--shavian-text-dark);
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.shavian-textarea:focus {
    border-color: var(--shavian-secondary);
    outline: none;
    box-shadow: 0 0 15px rgba(49, 130, 206, 0.5);
}

.shavian-output {
    width: 100%;
    min-height: 250px;
    padding: 1.5rem;
    border: 2px dashed var(--shavian-border);
    border-radius: 8px;
    font-size: 1.8rem;
    font-family: 'Noto Sans Shavian', sans-serif;
    background-color: var(--shavian-bg-light);
    color: var(--shavian-text-dark);
    overflow-y: auto;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    flex-grow: 1;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.control-button {
    background: linear-gradient(135deg, var(--shavian-secondary), var(--shavian-primary));
    color: var(--shavian-text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.control-button:active {
    transform: translateY(0);
}

.share-button {
    background: linear-gradient(135deg, var(--shavian-accent), #dd6b20);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.3);
    width: 100%;
    justify-content: center;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.4);
}

.share-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.share-modal-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background-color: #2d3748;
    border: 1px solid var(--shavian-border);
    border-radius: 12px;
    color: var(--shavian-text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.share-modal-button:hover {
    background-color: var(--shavian-secondary);
    color: var(--shavian-bg-dark);
    transform: translateY(-5px);
    border-color: var(--shavian-secondary);
}
.share-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

#shareCanvas {
    display: none;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .panel {
        padding: 1.5rem;
    }

    .panel h2 {
        font-size: 1.8rem;
    }

    .shavian-textarea, .shavian-output {
        min-height: 200px;
        font-size: 1rem;
    }

    .shavian-output {
        font-size: 1.5rem;
    }

    .controls {
        flex-direction: column;
    }
}
