/* Eiderra Website - Dark Fantasy Theme */

:root {
    --bg-dark: #1a1a2e;
    --bg-panel: #16163a;
    --bg-input: #12122a;
    --bg-deeper: #0e0e24;
    --accent-gold: #d4a643;
    --accent-gold-hover: #e0b84e;
    --border: #2a2a5e;
    --border-hover: #3a3a5e;
    --text-primary: #e0e0e0;
    --text-secondary: #c0c0d0;
    --text-muted: #8a8a9a;
    --text-dim: #5a5a6a;
    --success: #4ade80;
    --error: #ef4444;
    --btn-secondary: #2a2a4e;
    --btn-secondary-hover: #3a3a5e;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent-gold); text-decoration: none; }
a:hover { color: var(--accent-gold-hover); text-decoration: underline; }

/* Header */
.header {
    text-align: center;
    padding: 48px 24px 32px;
}

.header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.header .subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* Main Content */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    flex: 1;
    width: 100%;
}

/* Panels */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
}

.panel h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.panel p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 700px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent-gold);
}

.form-group input::placeholder {
    color: var(--text-dim);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-gold-hover);
    text-decoration: none;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--btn-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Messages */
.message {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.message.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    display: block;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    display: block;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 24px;
}

.download-section .btn {
    font-size: 18px;
    padding: 16px 48px;
}

.download-section .note {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 12px;
}

/* News */
.news-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.news-item .date {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.news-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Separator */
.separator {
    height: 1px;
    background: var(--border);
    margin: 8px 0 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-dim);
    font-size: 12px;
    background: var(--bg-deeper);
    margin-top: 48px;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-dark);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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