/* ============================================================
   Aethermoor - Website Styles
   Dark Fantasy Theme: Purple (#4a0e4e), Gold (#ffd700), Dark (#1a0a2e)
   ============================================================ */

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

:root {
    --primary: #4a0e4e;
    --primary-dark: #2d0a30;
    --primary-light: #6b1f6f;
    --gold: #ffd700;
    --gold-dark: #b8960f;
    --dark: #1a0a2e;
    --dark-lighter: #2a1540;
    --dark-lightest: #3a2055;
    --text: #e0d0f0;
    --text-dim: #a090b0;
    --text-bright: #ffffff;
    --hp: #c0392b;
    --success: #2ecc71;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
}

/* === Navigation === */
.website-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 10, 46, 0.95);
    border-bottom: 1px solid var(--primary);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.nav-logo {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    color: var(--gold);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-btn {
    background: linear-gradient(180deg, var(--gold-dark), var(--gold));
    color: var(--dark) !important;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-btn:hover {
    background: linear-gradient(180deg, var(--gold), #ffe44d);
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--dark) 100%);
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(74, 14, 78, 0.3) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-title {
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3); }
    to { text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 215, 0, 0.5), 0 0 120px rgba(255, 215, 0, 0.3); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-gold { background: linear-gradient(180deg, var(--gold-dark), var(--gold)); color: var(--dark); }
.btn-gold:hover { background: linear-gradient(180deg, var(--gold), #ffe44d); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-purple { background: linear-gradient(180deg, var(--primary-light), var(--primary)); color: var(--text); border: 1px solid var(--primary-light); }
.btn-purple:hover { background: linear-gradient(180deg, #7d2a7d, #5a155e); }
.btn-danger { background: linear-gradient(180deg, #a93226, var(--hp)); color: #fff; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.7rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* === Sections === */
.section { padding: 5rem 1rem; }
.section-dark { background: var(--dark-lighter); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--dark-lighter);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.feature-card h3 { color: var(--gold); margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; }

/* === Screenshots === */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.screenshot-placeholder {
    background: var(--dark-lightest);
    border: 1px solid var(--primary);
    border-radius: 8px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* === News === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--dark-lighter);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.news-card:hover { border-color: var(--gold); }
.news-date { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 0.5rem; }
.news-card h3 { color: var(--text); margin-bottom: 0.5rem; }
.news-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.read-more { color: var(--gold); text-decoration: none; font-size: 0.85rem; }
.read-more:hover { text-decoration: underline; }

/* === Community === */
.community-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.community-card {
    background: var(--dark);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.community-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.community-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.community-card p { color: var(--text-dim); font-size: 0.9rem; }

/* === Page Content === */
.page-content { padding: 5rem 1rem 3rem; min-height: 80vh; }
.page-title {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
}

/* === Auth Pages === */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-title {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.auth-form {
    background: rgba(26, 10, 46, 0.95);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    width: 400px;
    max-width: 100%;
}

.auth-form .input-group { margin-bottom: 1rem; }
.auth-form .input-group label { display: block; margin-bottom: 0.35rem; color: var(--text-dim); font-size: 0.85rem; }

.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.85rem; }
.auth-options a { color: var(--gold); text-decoration: none; }
.auth-switch { text-align: center; margin-top: 1rem; color: var(--text-dim); }
.auth-switch a { color: var(--gold); text-decoration: none; }

.auth-error { background: rgba(192, 57, 43, 0.2); border: 1px solid var(--hp); border-radius: 6px; padding: 0.75rem; margin-top: 1rem; color: var(--error); font-size: 0.85rem; text-align: center; }
.auth-success { background: rgba(46, 204, 113, 0.2); border: 1px solid var(--success); border-radius: 6px; padding: 0.75rem; margin-top: 1rem; color: var(--success); font-size: 0.85rem; text-align: center; }
.captcha-placeholder { background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 6px; padding: 1rem; text-align: center; margin-bottom: 1rem; color: var(--text-dim); font-size: 0.85rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.85rem; cursor: pointer; }
.checkbox-label a { color: var(--gold); }

/* === Inputs === */
.input {
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--dark-lighter);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15); }
.input::placeholder { color: var(--text-dim); }
.input-lg { padding: 0.75rem 1.25rem; font-size: 1rem; }

/* === Footer === */
.website-footer {
    background: var(--primary-dark);
    border-top: 1px solid var(--primary);
    padding: 3rem 1rem 1rem;
}

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

.footer-section h4 { color: var(--gold); margin-bottom: 1rem; font-family: Georgia, serif; }
.footer-section p { color: var(--text-dim); font-size: 0.85rem; }
.footer-section a { display: block; color: var(--text-dim); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-section a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 1rem; border-top: 1px solid var(--primary); color: var(--text-dim); font-size: 0.8rem; }

/* === Badges === */
.badge { display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.badge-online { background: var(--success); color: var(--dark); }
.badge-offline { background: #808080; color: #fff; }
.badge-busy { background: var(--error); color: #fff; }
.badge-rare { background: var(--gold); color: var(--dark); }
.badge-magic { background: var(--info); color: #fff; }

/* === Data Table === */
.data-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--primary); font-size: 0.85rem; }
.data-table th { color: var(--gold); font-weight: 600; background: var(--dark-lighter); }
.data-table td { color: var(--text); }
.data-table tr:hover td { background: rgba(74, 14, 78, 0.2); }

/* === Settings Sections === */
.settings-sections { display: flex; flex-direction: column; gap: 2rem; max-width: 800px; margin: 0 auto; }
.settings-section { background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; padding: 1.5rem; }
.settings-section h2 { color: var(--gold); font-size: 1.2rem; margin-bottom: 1rem; font-family: Georgia, serif; }
.settings-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* === Characters Grid === */
.characters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.character-card { background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; padding: 1.5rem; }
.character-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.char-class { color: var(--text-dim); font-size: 0.9rem; }
.char-level { color: var(--text); font-weight: 600; margin: 0.25rem 0; }
.char-zone { color: var(--text-dim); font-size: 0.85rem; }
.char-time { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 0.75rem; }
.char-stats { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.char-actions { display: flex; gap: 0.5rem; }
.create-char { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; color: var(--text); border-style: dashed; }
.create-char:hover { border-color: var(--gold); }
.create-icon { font-size: 2rem; color: var(--gold); margin-bottom: 0.5rem; }

/* === Session & Payment === */
.session-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--primary); }
.session-item strong { color: var(--text); }

/* === Download Page === */
.download-section { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.requirements-section { margin-bottom: 3rem; }
.requirements-section h2, .install-guide h2, .patch-notes h2 { color: var(--gold); font-family: Georgia, serif; margin-bottom: 1rem; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.req-card { background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; padding: 1.5rem; }
.req-card h3 { color: var(--gold); margin-bottom: 0.75rem; }
.req-card ul { list-style: none; }
.req-card li { padding: 0.35rem 0; color: var(--text-dim); font-size: 0.9rem; border-bottom: 1px solid rgba(74, 14, 78, 0.3); }
.install-guide ol { padding-left: 1.5rem; }
.install-guide li { padding: 0.5rem 0; color: var(--text); }
.patch-notes ul { padding-left: 1.5rem; }
.patch-notes li { padding: 0.35rem 0; color: var(--text-dim); }

/* === Shop === */
.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.premium-currency { color: var(--gold); font-size: 1.1rem; }
.shop-tabs { display: flex; gap: 2px; margin-bottom: 1.5rem; border-bottom: 2px solid var(--primary); }
.tab { padding: 0.5rem 1rem; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--text-dim); cursor: pointer; transition: all 0.15s; }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.shop-item { background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; padding: 1rem; text-align: center; transition: all 0.3s; }
.shop-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.shop-item-image { font-size: 3rem; margin-bottom: 0.5rem; }
.shop-item h3 { color: var(--text); font-size: 0.95rem; margin-bottom: 0.25rem; }
.shop-item-price { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.5rem; }
.shop-cart { background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; padding: 1.5rem; max-width: 500px; margin: 0 auto; }
.shop-cart h2 { color: var(--gold); margin-bottom: 1rem; }
.cart-items { min-height: 60px; margin-bottom: 1rem; }
.cart-total { display: flex; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid var(--primary); font-weight: 600; color: var(--gold); }

/* === Account: Security (2FA) === */
.twofa-status { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--dark); border: 1px solid var(--primary); border-radius: 8px; margin-bottom: 1rem; }
.twofa-setup { padding: 1rem; background: var(--dark); border: 1px solid var(--primary); border-radius: 8px; }
.qr-placeholder { width: 160px; height: 160px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--dark); font-size: 0.75rem; margin: 1rem auto; }
.twofa-steps { counter-reset: steps; padding-left: 0; list-style: none; margin: 0.75rem 0; }
.twofa-steps li { counter-increment: steps; padding: 0.4rem 0 0.4rem 2rem; position: relative; color: var(--text-dim); font-size: 0.9rem; }
.twofa-steps li::before { content: counter(steps); position: absolute; left: 0; top: 0.35rem; width: 1.4rem; height: 1.4rem; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #fff; }
.status-badge { display: inline-flex; padding: 0.15rem 0.6rem; border-radius: 10px; font-size: 0.75rem; font-weight: 600; }
.status-badge.disabled { background: #555; color: #ccc; }

/* === Account: Billing === */
.premium-status { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--dark); border: 1px solid var(--gold); border-radius: 8px; margin-bottom: 1rem; }
.status-badge.free { background: var(--dark-lightest); color: var(--text-dim); border: 1px solid var(--primary); }
.payment-methods { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }

/* === Form availability / real-time status === */
.input-status          { display:block; font-size:.8rem; margin-top:.25rem; min-height:1.1em; }
.input-status.available{ color:#5fd38d; }
.input-status.taken    { color:#ff7b72; }
.input-status.checking { color:#8aa0c0; }
.input-hint            { display:block; font-size:.8rem; color:#7a7a9a; margin-top:.2rem; }

/* === Navigation active state === */
.nav-links a.active { color: var(--gold); }

/* === Utility === */
.hidden { display: none !important; }

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .nav-links { gap: 0.75rem; }
    .nav-links a { font-size: 0.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .req-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .nav-container { flex-direction: column; height: auto; padding: 0.5rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 2rem; letter-spacing: 0.15em; }
}
