/* assets/css/wom-styles.css */

/* Landing Page Styles */
.wom-landing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Georgia', serif;
}

.wom-hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    padding: 60px 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.wom-norse-border {
    border: 3px solid #d4af37;
    border-radius: 10px;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    position: relative;
}

.wom-title {
    font-size: 3.5em;
    color: #d4af37;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: bold;
    letter-spacing: 2px;
}

.wom-story {
    max-width: 800px;
    margin: 0 auto 40px;
}

.wom-story-text {
    color: #ffffff;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.wom-dropcap {
    float: left;
    font-size: 4em;
    line-height: 0.8;
    margin: 0.1em 0.1em 0 0;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.wom-cta-section {
    text-align: center;
    margin-top: 40px;
}

.wom-try-button {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    color: #1e3c72;
    border: none;
    padding: 18px 50px;
    font-size: 1.3em;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
    display: inline-block;
}

.wom-try-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.5);
}

.wom-rune {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.2em;
}

.wom-info {
    color: #ffffff;
    margin-top: 20px;
    font-size: 1.1em;
}

/* Features Section */
.wom-features-section {
    margin-top: 60px;
}

.wom-section-title {
    text-align: center;
    font-size: 2.5em;
    color: #1e3c72;
    margin-bottom: 40px;
}

.wom-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.wom-feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.wom-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.wom-feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.wom-feature-card h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

/* Chat Modal */
.wom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wom-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    height: 80%;
    max-height: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.wom-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    z-index: 10;
}

.wom-close:hover {
    color: #000;
}

/* Chat Container */
.wom-chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
}

.wom-chat-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wom-chat-header h2 {
    margin: 0;
    color: white;
}

.wom-demo-selector select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #d4af37;
    background: rgba(255,255,255,0.9);
    color: #1e3c72;
    font-weight: bold;
}

/* Chat Status */
.wom-chat-status {
    background: #f5f5f5;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

.wom-status-message {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wom-status-info {
    color: #2a5298;
}

.wom-status-warning {
    color: #ff9800;
    font-weight: bold;
}

.wom-status-success {
    color: #4caf50;
}

/* Demo Controls */
.wom-demo-controls {
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.wom-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: #2a5298;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.wom-upload-label:hover {
    background: #1e3c72;
}

#wom-file-status {
    margin-top: 10px;
}

.wom-embedding-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Chat Messages */
.wom-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.wom-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

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

.wom-user-message {
    text-align: right;
}

.wom-user-message p {
    background: #2a5298;
    color: white;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 15px 15px 5px 15px;
    max-width: 70%;
}

.wom-assistant-message p {
    background: white;
    color: #333;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 5px;
    max-width: 70%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wom-system-message {
    text-align: center;
    color: #666;
    font-style: italic;
}

.wom-error-message p {
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #c62828;
}

/* Typing Indicator */
.wom-typing-indicator {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wom-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.wom-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.wom-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Chat Input */
.wom-chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #ddd;
}

.wom-input-group {
    display: flex;
    gap: 10px;
}

.wom-chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
}

.wom-chat-input:focus {
    outline: none;
    border-color: #2a5298;
}

.wom-send-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a5298;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.wom-send-button:hover:not(:disabled) {
    background: #1e3c72;
}

.wom-send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wom-send-icon {
    font-size: 20px;
}

/* API Key Form */
.wom-api-key-form {
    padding: 20px;
}

.wom-form-group {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.wom-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.wom-toggle-visibility {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.wom-form-help {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* Buttons */
.wom-button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.wom-button-primary {
    background: #2a5298;
    color: white;
}

.wom-button-primary:hover {
    background: #1e3c72;
}

.wom-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.wom-button-secondary:hover {
    background: #e0e0e0;
}

/* Messages */
.wom-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wom-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wom-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Registration Prompt */
.wom-register-prompt {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px auto;
    max-width: 400px;
}

.wom-register-prompt p {
    margin-bottom: 15px;
    color: #856404;
}

.wom-register-prompt .wom-button {
    margin: 0 5px;
}

/* Embedding Result */
.wom-embedding-output {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

/* Modal Inner */
.wom-modal-inner {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

/* Login/Register Links */
.wom-login-link,
.wom-register-link {
    color: #2a5298;
    text-decoration: none;
    font-weight: bold;
}

.wom-login-link:hover,
.wom-register-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wom-title {
        font-size: 2.5em;
    }
    
    .wom-norse-border {
        padding: 20px;
    }
    
    .wom-try-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    
    .wom-modal-content {
        width: 95%;
        height: 90%;
    }
    
    .wom-features-grid {
        grid-template-columns: 1fr;
    }
    
    .wom-chat-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* Admin Styles (for settings page) */
.wom-admin-info {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.wom-admin-info h2 {
    margin-top: 0;
}

.wom-admin-info code {
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.wom-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wom-stats-cards .card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.wom-stats-cards .stat-number {
    font-size: 2.5em;
    color: #2a5298;
    font-weight: bold;
}