/* =====================================
STORMY-LIGHT GUILD WEBSITE STYLE
BLUE / SILVER / FROST THEME
===================================== */

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

/* =====================================
BODY
===================================== */

body {
    font-family: "Cinzel", serif;
    color: #e9f3ff;
    line-height: 1.6;
    background:
        linear-gradient(rgba(5, 15, 35, 0.55), rgba(5, 15, 35, 0.85)),
        url("images/background.png") center / cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
}

/* Optional: leichter Schnee-/Magie-Effekt */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 30% 70%, rgba(180,220,255,0.35) 0 1px, transparent 2px),
        radial-gradient(circle at 60% 30%, rgba(255,255,255,0.45) 0 1.2px, transparent 2.2px),
        radial-gradient(circle at 85% 15%, rgba(180,220,255,0.35) 0 1px, transparent 2px),
        radial-gradient(circle at 75% 80%, rgba(255,255,255,0.4) 0 1px, transparent 2px);
    background-size: 320px 320px, 420px 420px, 520px 520px, 620px 620px, 760px 760px;
    opacity: 0.45;
    z-index: 0;
}

.site-header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* =====================================
LINKS
===================================== */

a {
    color: #9fd3ff;
}

/* =====================================
HEADER / NAV
===================================== */

.site-header {
    position: relative;
    border-bottom: 1px solid rgba(120, 180, 255, 0.28);
    background: linear-gradient(180deg, rgba(10, 20, 42, 0.96), rgba(6, 12, 28, 0.94));
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.32),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 24px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    flex-wrap: wrap;
}

.logo-main h1 {
    margin: 0;
    color: #d7ecff;
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: 0.5px;
    text-shadow:
        0 0 12px rgba(120, 180, 255, 0.26),
        0 0 24px rgba(60, 120, 255, 0.14);
}

.logo-main p {
    margin: 8px 0 0;
    color: #a9c6e7;
    font-size: 0.98rem;
}

.account-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.username {
    color: #bfe3ff;
    font-weight: bold;
    font-size: 0.96rem;
    text-shadow: 0 0 8px rgba(120, 180, 255, 0.2);
}

/* =====================================
GUILD DROPDOWN
===================================== */

.guild-dropdown {
    position: relative;
}

.guild-dropdown-toggle {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 7px;
    border: 1px solid #6da6e6;
    background: linear-gradient(#29538a, #152f56);
    color: #eef7ff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow:
        inset 0 0 8px rgba(180, 220, 255, 0.08),
        0 0 10px rgba(70, 130, 220, 0.08);
    font-family: inherit;
    font-size: 0.95rem;
}

.guild-dropdown-toggle:hover {
    background: linear-gradient(#3467a8, #1a3b6a);
    color: #ffffff;
    border-color: #9fd3ff;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(120, 180, 255, 0.22);
}

.guild-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(109, 166, 230, 0.7);
    background: rgba(7, 15, 31, 0.98);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
    z-index: 1000;
}

.guild-dropdown.open .guild-dropdown-menu {
    display: block;
}

.guild-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(109, 166, 230, 0.35);
    color: #dff1ff;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.22s ease;
    word-break: break-word;
}

.guild-dropdown-menu a:last-child {
    margin-bottom: 0;
}

.guild-dropdown-menu a:hover {
    color: #ffffff;
    border-color: #9fd3ff;
    background: rgba(130, 190, 255, 0.08);
    box-shadow: 0 0 10px rgba(120, 180, 255, 0.14);
}

/* =====================================
BUTTONS
===================================== */

.guild-button,
.wow-button,
.hero-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 7px;
    border: 1px solid #6da6e6;
    background: linear-gradient(#29538a, #152f56);
    color: #eef7ff;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow:
        inset 0 0 8px rgba(180, 220, 255, 0.08),
        0 0 10px rgba(70, 130, 220, 0.08);
}

.guild-button:hover,
.wow-button:hover,
.hero-button:hover {
    background: linear-gradient(#3467a8, #1a3b6a);
    color: #ffffff;
    border-color: #9fd3ff;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(120, 180, 255, 0.22);
}

/* =====================================
LANGUAGE SWITCH
===================================== */

.language-switch {
    display: flex;
    gap: 6px;
    margin-left: 4px;
    align-items: center;
}

.lang-btn {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #5f97d8;
    background: linear-gradient(to bottom, #234a7f, #132a4c);
    color: #e6f4ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.22s ease;
}

.lang-btn:hover,
.active-lang {
    color: #ffffff;
    border-color: #9fd3ff;
    box-shadow: 0 0 8px rgba(120, 180, 255, 0.3);
}

/* =====================================
MAIN NAV
===================================== */

.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 9px;
    text-decoration: none;
    color: #e9f3ff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(109, 166, 230, 0.42);
    transition: all 0.22s ease;
    font-weight: 600;
}

.main-nav a:hover {
    color: #ffffff;
    border-color: #9fd3ff;
    background: rgba(130, 190, 255, 0.06);
    box-shadow: 0 0 10px rgba(120, 180, 255, 0.16);
    transform: translateY(-1px);
}

/* =====================================
MAIN
===================================== */

main {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* =====================================
SECTIONS
===================================== */

section {
    background: rgba(5, 12, 26, 0.42);
    border: 1px solid rgba(109, 166, 230, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow:
        0 0 14px rgba(120, 180, 255, 0.08),
        inset 0 0 10px rgba(255, 255, 255, 0.02);
}

h1,
h2,
h3 {
    color: #d7ecff;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(120, 180, 255, 0.22);
}

/* =====================================
HERO BANNER
===================================== */

.hero-banner {
    position: relative;
    height: 420px;
    background:
        linear-gradient(rgba(8, 18, 38, 0.45), rgba(5, 12, 26, 0.72)),
        url("images/hero-bg.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 40px;
    box-shadow:
        0 0 22px rgba(120, 180, 255, 0.12),
        inset 0 0 50px rgba(0, 0, 0, 0.68);
}

.hero-overlay {
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 52px;
    color: #e8f5ff;
    text-shadow:
        0 0 16px rgba(140, 200, 255, 0.48),
        0 0 34px rgba(70, 130, 220, 0.24);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 20px;
    color: #d4e8fb;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* =====================================
NEWS
===================================== */

.news article {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(109, 166, 230, 0.42);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    transition: 0.25s;
}

.news article:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(120, 180, 255, 0.18);
}

.news-image,
.news-image-preview {
    margin-top: 15px;
    margin-bottom: 15px;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(109, 166, 230, 0.48);
    display: block;
}

.news-date,
.admin-meta {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #a9c6e7;
}

.empty-news,
.empty-box {
    padding: 20px;
    border: 1px solid rgba(109, 166, 230, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

/* =====================================
FORUM
===================================== */

.forum-hero {
    text-align: center;
    padding: 10px 0 20px;
}

.forum-hero h2 {
    margin-bottom: 12px;
}

.forum-intro {
    max-width: 850px;
    margin: 0 auto;
    color: #d9eaf9;
    line-height: 1.7;
    font-size: 1.05rem;
}

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

.forum-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(109, 166, 230, 0.42);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.25s ease;
}

.forum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(120, 180, 255, 0.16);
}

.forum-card h3 {
    color: #d7ecff;
    margin-bottom: 10px;
}

.forum-card p {
    color: #d9eaf9;
    line-height: 1.6;
    margin-bottom: 14px;
}

.forum-meta {
    color: #a9c6e7;
    font-size: 0.95rem;
    font-weight: bold;
}

.forum-topic {
    background: rgba(255, 255, 255, 0.025);
    border-left: 4px solid #6da6e6;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.forum-topic h3 {
    color: #d7ecff;
    margin-bottom: 10px;
}

.forum-topic p {
    color: #d9eaf9;
    line-height: 1.7;
}

.forum-topic small {
    display: block;
    margin-top: 10px;
    color: #a9c6e7;
}

.forum-image {
    margin-top: 12px;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(109, 166, 230, 0.48);
    display: block;
}

.reply-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(109, 166, 230, 0.3);
}

.reply-form {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(109, 166, 230, 0.25);
}

.manage-row {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

.small-button,
.delete-button,
.delete-media-button {
    display: inline-block;
    text-decoration: none;
    color: #eef7ff;
    background: linear-gradient(to bottom, #244d82, #132b4e);
    border: 1px solid #6da6e6;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 8px rgba(180, 220, 255, 0.08);
    cursor: pointer;
    font-size: 0.9rem;
}

.small-button:hover,
.delete-button:hover,
.delete-media-button:hover {
    color: #ffffff;
    border-color: #9fd3ff;
    box-shadow: 0 0 12px rgba(120, 180, 255, 0.24);
}

.edit-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(109, 166, 230, 0.3);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d9eaf9;
}

.edited-note {
    color: #9fd3ff;
    font-style: italic;
}

/* =====================================
MEDIA GALLERY
===================================== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.media-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(109, 166, 230, 0.42);
    border-radius: 8px;
    padding: 10px;
    transition: 0.25s;
}

.media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(120, 180, 255, 0.18);
}

.media-card img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(109, 166, 230, 0.36);
    display: block;
}

.media-owner {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #a9c6e7;
}

.media-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =====================================
SOCIAL
===================================== */

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

.social-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(109, 166, 230, 0.42);
    border-radius: 10px;
    padding: 20px;
    transition: 0.25s;
    color: #e9f3ff;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(120, 180, 255, 0.18);
}

.social-card h3 {
    color: #d7ecff;
    margin-bottom: 10px;
}

/* =====================================
FORMS
===================================== */

.guild-form,
.forum-form,
.news-form,
.raidplan-form,
.application-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guild-form label,
.forum-form label,
.news-form label,
.raidplan-form label,
.application-form label {
    color: #d7ecff;
    font-weight: bold;
}

.guild-form input,
.guild-form textarea,
.guild-form select,
.forum-form input,
.forum-form textarea,
.forum-form select,
.news-form input,
.news-form textarea,
.news-form select,
.raidplan-form input,
.raidplan-form textarea,
.raidplan-form select,
.application-form input,
.application-form textarea,
.application-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #4f78a8;
    background: #081321;
    color: #eef7ff;
    font-family: inherit;
}

.guild-form textarea,
.forum-form textarea,
.news-form textarea,
.raidplan-form textarea,
.application-form textarea {
    min-height: 140px;
    resize: vertical;
}

.forum-form textarea {
    min-height: 180px;
}

.reply-form .forum-form textarea {
    min-height: 120px;
}

.guild-form input:focus,
.guild-form textarea:focus,
.guild-form select:focus,
.forum-form input:focus,
.forum-form textarea:focus,
.forum-form select:focus,
.news-form input:focus,
.news-form textarea:focus,
.news-form select:focus,
.raidplan-form input:focus,
.raidplan-form textarea:focus,
.raidplan-form select:focus,
.application-form input:focus,
.application-form textarea:focus,
.application-form select:focus {
    outline: none;
    border-color: #9fd3ff;
    box-shadow: 0 0 10px rgba(120, 180, 255, 0.24);
}

/* =====================================
STATUS / MESSAGES
===================================== */

.status-box {
    text-align: center;
}

.status-box p {
    max-width: 800px;
    margin: 0 auto;
}

.status-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.upload-message,
.notice-box {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 6px;
    background: rgba(120, 180, 255, 0.08);
    border: 1px solid rgba(109, 166, 230, 0.42);
    color: #e9f3ff;
}

.message {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.message.error {
    background: rgba(120, 20, 30, 0.28);
    border: 1px solid rgba(255, 120, 140, 0.25);
    color: #ffd7de;
}

.message.success {
    background: rgba(30, 90, 120, 0.24);
    border: 1px solid rgba(120, 200, 255, 0.24);
    color: #dff4ff;
}

/* =====================================
REALM / LOGIN / REGISTER
===================================== */

.realm-wrapper,
.login-wrapper,
.register-wrapper,
.verify-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
}

.realm-frame,
.login-box,
.register-box,
.verify-frame {
    background: linear-gradient(180deg, rgba(12, 24, 46, 0.96), rgba(6, 12, 24, 0.98));
    border: 2px solid rgba(109, 166, 230, 0.72);
    border-radius: 16px;
    box-shadow:
        0 0 0 2px rgba(20, 34, 58, 0.8) inset,
        0 0 28px rgba(0, 0, 0, 0.55),
        0 18px 60px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    padding: 24px;
}

.realm-header,
.verify-header {
    padding: 26px 24px 20px;
    border-bottom: 1px solid rgba(120, 180, 255, 0.18);
    background: linear-gradient(180deg, rgba(60, 100, 160, 0.2), rgba(18, 32, 56, 0.08));
    text-align: center;
}

.realm-title,
.verify-title {
    margin: 0;
    font-size: 36px;
    color: #dff2ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(120, 180, 255, 0.22);
}

.realm-subtitle,
.verify-subtitle,
.subtext {
    margin: 10px 0 0;
    color: #b8d4ee;
    font-size: 16px;
    line-height: 1.6;
}

.realm-content,
.verify-content {
    padding: 26px;
}

.server-status {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(109, 166, 230, 0.42);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.server-name {
    font-size: 22px;
    color: #dff2ff;
    margin: 0;
}

.server-desc {
    margin: 6px 0 0;
    color: #d9eaf9;
    line-height: 1.6;
    font-size: 15px;
}

.server-online {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(120, 200, 255, 0.35);
    background: rgba(40, 110, 180, 0.18);
    color: #dff4ff;
    font-weight: bold;
    white-space: nowrap;
}

.form-box,
.verify-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(109, 166, 230, 0.42);
    border-radius: 12px;
    padding: 22px;
}

.form-title {
    margin: 0 0 18px;
    font-size: 24px;
    color: #dff2ff;
    text-align: center;
}

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

.realm-button,
.realm-link-button,
.verify-button {
    display: inline-block;
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #6da6e6;
    background: linear-gradient(to bottom, #29538a, #152f56);
    color: #eef7ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 8px rgba(180, 220, 255, 0.08);
}

.realm-button:hover,
.realm-link-button:hover,
.verify-button:hover {
    color: #ffffff;
    border-color: #9fd3ff;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(120, 180, 255, 0.24);
}

.links-row {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.bottom-links {
    margin-top: 22px;
    text-align: center;
    color: #b9d1e8;
    font-size: 15px;
}

.bottom-links a {
    color: #9fd3ff;
    text-decoration: none;
    font-weight: bold;
}

.bottom-links a:hover {
    text-decoration: underline;
}

.top-ornament {
    text-align: center;
    margin-bottom: 18px;
    color: #7dc0ff;
    font-size: 34px;
    text-shadow: 0 0 12px rgba(120, 180, 255, 0.35);
}

.back-home {
    margin-top: 14px;
    text-align: center;
}

.back-home a {
    color: #9dbfe0;
    text-decoration: none;
    font-size: 14px;
}

.back-home a:hover {
    color: #dff2ff;
}

/* =====================================
FOOTER
===================================== */

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(109, 166, 230, 0.3);
    background: rgba(6, 12, 24, 0.75);
    color: #a9c6e7;
    margin-top: 40px;
}

/* =====================================
RESPONSIVE
===================================== */

@media (max-width: 900px) {
    .header-top {
        padding: 18px 16px 12px;
    }

    .main-nav {
        padding: 0 16px 16px;
    }

    .logo-main h1 {
        font-size: 1.9rem;
    }

    .account-box {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav a {
        width: 100%;
    }

    .hero-title,
    .hero h2 {
        font-size: 28px;
    }

    .hero-subtitle,
    .hero p {
        font-size: 16px;
    }

    main {
        padding: 30px 15px;
    }

    .server-status {
        grid-template-columns: 1fr;
    }

    .realm-content,
    .verify-content {
        padding: 18px;
    }

    .form-box,
    .login-box,
    .register-box,
    .verify-box {
        padding: 18px;
    }
}