/* MEDEA-NEUMOUSA: Classical Studies AI Platform Styling */
/* Dark Academia Theme for Classical Studies */

:root {
    /* Colors - Ancient Palette */
    --primary-dark: #0a0f1c;
    --secondary-dark: #1a1f3a;
    --accent-gold: #d4af37;
    --accent-bronze: #cd7f32;
    --text-light: #f5f5f5;
    --text-muted: #b8b8b8;
    --text-accent: #e94560;
    --border-color: #2d3348;
    --glass-bg: rgba(26, 31, 58, 0.85);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hard: 0 8px 30px rgba(0, 0, 0, 0.5);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, #0f1419 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(233, 69, 96, 0.1) 0%, transparent 25%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

/* Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    gap: 0.5rem;
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(var(--glow-gold));
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.brand-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-accent);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: var(--glow-gold);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: var(--shadow-soft);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-accent);
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronze));
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hard), var(--glow-gold);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-hard), var(--glow-gold);
    transform: translateY(-5px);
}

.card-title {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title::before {
    content: '🔮';
    font-size: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    font-weight: 600;
    font-family: var(--font-heading);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 31, 58, 0.7);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: var(--glow-gold);
    background: rgba(26, 31, 58, 0.9);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

/* Translation Interface */
.translate-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.language-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.swap-btn {
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    color: var(--accent-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.swap-btn:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--glow-gold);
    transform: rotate(180deg);
}

/* Results */
.results-container {
    margin-top: 2rem;
}

.result-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(233, 69, 96, 0.1));
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1rem;
}

.result-text {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
    text-align: center;
}

.result-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    text-align: center;
}

.meta-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.meta-value {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-quote {
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .language-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .swap-btn {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add this to your existing medea.css file */

/* Attribution Section */
.footer-attribution {
    background: rgba(212, 175, 55, 0.1);
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    padding: 1.5rem 2rem;
    margin: 1rem 0;
}

.attribution-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.attribution-main h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

.attribution-creator {
    margin-top: 1rem;
}

.attribution-creator strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.attribution-creator a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-gold);
    transition: all 0.3s ease;
}

.attribution-creator a:hover {
    color: var(--text-accent);
    border-bottom-color: var(--text-accent);
}

/* Responsive attribution */
@media (max-width: 768px) {
    .footer-attribution {
        padding: 1rem;
    }
    
    .attribution-main h4 {
        font-size: 1rem;
    }
    
    .attribution-creator {
        font-size: 0.9rem;
    }
}

/* API Status Indicator */
.api-status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.api-status-pill:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef5350; /* Default missing */
    box-shadow: 0 0 8px rgba(239, 83, 80, 0.5);
}

.status-dot.active {
    background: #3ecf8e;
    box-shadow: 0 0 10px rgba(62, 207, 142, 0.6);
}

/* Modal Styling */
.medea-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.medea-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.medea-modal {
    background: var(--glass-bg);
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: var(--shadow-hard), var(--glow-gold);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.medea-modal-overlay.active .medea-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-gold);
}

/* Provider Mini Tabs */
.provider-mini-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mini-tab {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.mini-tab.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.provider-info-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(10, 15, 28, 0.4);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-gold);
}

/* High-Visibility Banner */
.medea-banner {
    width: 100%;
    background: linear-gradient(90deg, #b8941e, var(--accent-gold), #b8941e);
    color: #0a0c15;
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
    z-index: 3000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: slideDownBanner 0.5s ease-out;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.banner-text {
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-main);
}

.banner-btn {
    background: #0a0c15;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-btn:hover {
    background: var(--accent-gold);
    color: #0a0c15;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes slideDownBanner {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes pulseBanner {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}

.medea-banner.pulse {
    animation: slideDownBanner 0.5s ease-out, pulseBanner 2s infinite ease-in-out;
}

@media (max-width: 768px) {
    .banner-content {
        gap: 0.8rem;
    }
    .banner-text {
        font-size: 0.85rem;
    }
}

/* Floating Settings Island */
.settings-island {
    position: fixed;
    top: 85px;
    right: 20px;
    z-index: 2000;
    pointer-events: none;
}

.status-pill {
    pointer-events: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-gold);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(212, 175, 55, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-pill:hover {
    transform: scale(1.05);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.status-pill.pulse {
    animation: glowPill 2s infinite ease-in-out;
}

@keyframes glowPill {
    0% { border-color: var(--accent-gold); box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { border-color: #fff; box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
    100% { border-color: var(--accent-gold); box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}

.status-pill #global-status-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .settings-island {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
}