/* ========================================
--- KRONFJÄLLET | STYLE GUIDE (BLÅ TEMA) ---
========================================
* Mörkblå (Rutor): rgba(10, 15, 30, 0.92)
* Neonblå (Accent): #00C2FF
* Knappar (Behålls Gröna): #7FFF00
* Off-White (Brödtext): #F5F5F5
========================================
*/

/* --- Global Styles & Background --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #F5F5F5;
    
    background-image: url('bg/background.jpg'); 
    background-size: cover; 
    background-position: center bottom; 
    background-attachment: scroll; 
    
    overflow-x: hidden;
    min-height: 100vh; 
}

/* --- Reusable Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.main-header {
    padding: 2rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: 'Audiowide', sans-serif;
    font-size: 2rem;
    color: #F5F5F5;
    text-decoration: none;
    /* ÄNDRAT TILL BLÅTT */
    text-shadow: 0 0 7px #00C2FF;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: #F5F5F5;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    /* ÄNDRAT TILL BLÅTT */
    color: #00C2FF;
}

.nav-user-profile {
    display: flex;
    align-items: center;
    gap: 8px; 
}

.nav-profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%; 
    object-fit: cover; 
    /* ÄNDRAT TILL BLÅTT */
    border: 1px solid #00C2FF; 
}

/* =======================================================
   --- KNAPPAR (BEHÅLLNA I GRÖNT ENLIGT ÖNSKEMÅL) ---
   ======================================================= */
.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: 'Audiowide', sans-serif;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    /* GRÖN (KVAR) */
    background-color: #00C2FF;
    color: #0a190f;
    box-shadow: 0 0 15px rgba(30, 93, 211, 0.8);
    border: none;
}

.btn-primary:hover {
    background-color: #00C2FF;
    box-shadow: 0 0 25px rgba(30, 93, 211, 0.8);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: #F5F5F5;
    /* GRÖN (KVAR) */
    border: 2px solid #00C2FF;
}

.btn-secondary:hover {
    background-color: #00C2FF;
    color: #0e113a;
    transform: translateY(-3px);
}

.btn-discord {
    display: inline-block;
    background-color: #5865F2;
    color: #FFFFFF;
    font-weight: 700;
    border: none;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    width: 100%;
    text-align: center;
}

.btn-discord:hover {
    background-color: #4f5bda;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* --- Sektioner på Startsidan (Hero, Features) --- */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-family: 'Audiowide', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    /* ÄNDRAT TILL BLÅTT */
    text-shadow: 0 0 5px #00C2FF, 0 0 15px #00C2FF;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.features {
    padding: 5rem 0;
}

.features .container {
    /* ÄNDRAT TILL MÖRKBLÅ BAKGRUND OCH BLÅ RAM */
    background-color: rgba(10, 15, 30, 0.90);
    border: 1px solid #00C2FF;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 0 30px rgba(0, 194, 255, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-card h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.5rem;
    /* ÄNDRAT TILL BLÅTT */
    color: #00C2FF;
    margin-bottom: 1rem;
}


/* =======================================================
   --- Allmänna Stilar för Innehålls- & Formulärsidor ---
   ======================================================= */

.content-page,
.login-page, 
.register-page, 
.forgot-password-page, 
.profile-page,
.members-page,
.admin-page { 
    padding: 5rem 0; 
    display: flex;
    flex-direction: column; 
    align-items: center;
    min-height: 80vh; 
}

.content-page .container,
.login-page .container, 
.register-page .container, 
.forgot-password-page .container,
.profile-page .container,
.members-page .container,
.admin-page .container {
    /* ÄNDRAT TILL MÖRKBLÅ BAKGRUND OCH BLÅ RAM */
    background-color: rgba(10, 15, 30, 0.92);
    border: 1px solid #00C2FF;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 0 30px rgba(0, 194, 255, 0.3);
    width: 100%;
}

.login-page .container, 
.register-page .container, 
.forgot-password-page .container {
    max-width: 500px; 
}

.content-page .container,
.profile-page .container,
.members-page .container {
    max-width: 900px;
}
.admin-page .container {
    max-width: 1200px;
}

.content-page h1,
.login-page h1, 
.register-page h1, 
.forgot-password-page h1,
.members-page h1,
.admin-page h1 {
    font-family: 'Audiowide', sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem; 
    text-align: center;
    /* ÄNDRAT TILL BLÅTT */
    text-shadow: 0 0 5px #00C2FF, 0 0 15px #00C2FF;
}

.content-page .subtitle,
.login-page .subtitle, 
.register-page .subtitle, 
.forgot-password-page .subtitle,
.profile-page .profile-page-intro,
.members-page .subtitle {
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 2rem;
    max-width: 100%;
    text-align: center;
}
.profile-page .profile-page-intro {
    margin-top: 1rem;
}

/* =======================================================
   --- Generella Formulärsstilar ---
   ======================================================= */

.application-container, 
.form-container {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: rgba(245, 245, 245, 0.8);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    /* ÄNDRAT TILL MÖRKBLÅ BAKGRUND OCH BLÅ RAM */
    background-color: rgba(15, 25, 40, 0.7);
    border: 1px solid #00C2FF;
    border-radius: 5px;
    color: #F5F5F5;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border-style: dashed;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    /* ÄNDRAT TILL BLÅ GLÖD */
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.5);
}

.application-form .btn-primary,
.profile-form .btn-primary,
.application-container .btn-primary {
    width: auto; 
    margin-top: 0.5rem;
    text-align: center;
}

.form-button-group {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.form-button-group .btn {
    width: 100%;
    font-size: 0.9rem;
}

.form-extra-link {
    text-align: left;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

.form-extra-link a {
    color: rgba(245, 245, 245, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-extra-link a:hover {
    color: #F5F5F5;
    text-decoration: underline;
}

/* =======================================================
   --- Sid-specifika Stilar ---
   ======================================================= */

/* --- Profilsidan --- */
.profile-header {
    display: flex;
    align-items: center; 
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    /* ÄNDRAT TILL BLÅTT */
    border-bottom: 1px solid rgba(0, 194, 255, 0.2);
}

.profile-main-pic {
    width: 150px; 
    height: 150px;
    border-radius: 50%;
    /* ÄNDRAT TILL MÖRKBLÅ */
    border: 5px solid rgba(10, 15, 30, 0.8);
    object-fit: cover;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.profile-page .profile-header h1 {
    font-size: 2.5rem; 
    margin-bottom: 0; 
    text-align: left;
}

.profile-section {
    margin-top: 2rem;
    padding: 1.5rem;
    /* ÄNDRAT TILL MÖRKBLÅ BAKGRUND */
    background-color: rgba(10, 15, 30, 0.5);
    border-radius: 8px;
    text-align: left;
}

.profile-section h3 {
    font-family: 'Audiowide', sans-serif;
    /* ÄNDRAT TILL BLÅTT */
    color: #00C2FF;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    /* ÄNDRAT TILL MÖRKBLÅ */
    background-color: rgba(10, 15, 30, 0.8);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid rgba(0, 194, 255, 0.2);
}

.profile-bio {
    line-height: 1.7;
    white-space: pre-wrap; 
    color: rgba(245, 245, 245, 0.9);
}

.character-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-grid .info-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 5px;
}

.info-item span {
    display: block;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 0.25rem;
}

.info-item strong {
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Meddelande- & Status-rutor --- */
.notice-box, .success-box {
    border: 1px solid #5865F2;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}
.notice-box {
    background-color: rgba(88, 101, 242, 0.2);
}
.success-box {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
}

.notice-box h3, .success-box h3 {
    font-family: 'Audiowide', sans-serif;
    color: #F5F5F5;
    margin-bottom: 0.5rem;
}
.success-box h3 {
    color: #c3e6cb;
}

.status-container {
    margin-top: 2rem;
    padding: 1.5rem;
    /* ÄNDRAT TILL MÖRKBLÅ */
    background-color: rgba(10, 15, 30, 0.8);
    border-radius: 8px;
}
.status-container h3 {
    font-family: 'Audiowide', sans-serif;
    /* ÄNDRAT TILL BLÅTT */
    color: #00C2FF;
    margin-bottom: 1rem;
    text-align: left;
}
.status-container p {
    text-align: left;
    font-size: 1.1rem;
}
.status-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.status-tag {
    display: inline-block;
    vertical-align: middle;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
} 
.status-pending, .status-interview {
    background-color: #ffc107;
    color: #212121;
}
.status-approved {
    background-color: #28a745;
}
.status-denied {
    background-color: #dc3545;
}


/* --- Medlemslistan --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem; 
    margin-top: 2rem;
}

a.member-card-link {
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

.member-card {
    /* ÄNDRAT TILL MÖRKBLÅ */
    background-color: rgba(10, 15, 30, 0.8);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%; 
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.member-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* ÄNDRAT TILL BLÅTT */
    border: 3px solid #00C2FF;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.member-card h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.1rem;
    color: #F5F5F5;
    word-break: break-all; 
}

/* --- Admin-panelen --- */
.admin-table {
    width: 100%;
    border-collapse: collapse; 
    margin-top: 2rem;
    font-size: 0.9rem;
    display: block; 
    overflow-x: auto;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    /* ÄNDRAT TILL BLÅTT */
    border: 1px solid rgba(0, 194, 255, 0.3);
    text-align: left;
    white-space: nowrap; 
}

.admin-table th {
    /* ÄNDRAT TILL MÖRKBLÅ OCH BLÅ TEXT */
    background-color: rgba(10, 15, 30, 0.8);
    font-family: 'Audiowide', sans-serif;
    color: #00C2FF;
}

.admin-table tbody tr:nth-child(even) {
    /* ÄNDRAT TILL MÖRKBLÅ */
    background-color: rgba(10, 15, 30, 0.4); 
}

.admin-table .application-text-cell {
    max-width: 400px; 
    white-space: pre-wrap; 
    word-break: break-word; 
}

.admin-action-form button {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    color: white;
    margin-right: 5px;
    margin-bottom: 5px; 
}

.btn-approve {
    background-color: #28a745; 
}
.btn-approve:hover {
    background-color: #218838;
}

.btn-deny {
    background-color: #dc3545; 
}
.btn-deny:hover {
    background-color: #c82333;
}
.btn-interview {
    background-color: #ffc107; 
    color: #212121; 
}
.btn-interview:hover {
    background-color: #e0a800;
}


/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(245, 245, 245, 0.6);
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }

    .content-page .container,
    .login-page .container, 
    .register-page .container, 
    .forgot-password-page .container,
    .profile-page .container,
    .members-page .container,
    .admin-page .container { 
        padding: 2rem; 
    }

    .content-page h1,
    .login-page h1, 
    .register-page h1, 
    .forgot-password-page h1,
    .profile-page .profile-header h1,
    .members-page h1,
    .admin-page h1 {
        font-size: 2rem; 
    }

    .profile-header {
        flex-direction: column; 
        align-items: center;
        padding-left: 0;
        text-align: center;
    }
    .profile-main-pic {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .profile-page .profile-header h1 {
        text-align: center;
    }
}
/* =======================================================
   --- Stilar för Informationssidor (T.ex. Om Servern) ---
   ======================================================= */

.info-block {
    margin-bottom: 2.5rem; 
    padding-bottom: 2rem; 
    /* ÄNDRAT TILL BLÅTT */
    border-bottom: 1px solid rgba(0, 194, 255, 0.2); 
}

.info-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-block h3 {
    font-family: 'Audiowide', sans-serif; 
    /* ÄNDRAT TILL BLÅTT */
    color: #00C2FF; 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    text-shadow: 0 0 5px rgba(0, 194, 255, 0.5);
}

.info-block p {
    line-height: 1.7; 
    color: rgba(245, 245, 245, 0.9); 
}

/* En liten extra klass för att markera viktig text */
.text-highlight {
    color: #ffc107; 
    font-weight: 700;
    display: block;
    margin-top: 1rem;
}
/* =======================================================
   --- Stilar för Serverregler ---
   ======================================================= */

.rules-list h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 2rem;
    text-align: center;
    color: #F5F5F5;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    /* ÄNDRAT TILL BLÅTT */
    border-bottom: 1px solid rgba(0, 194, 255, 0.3);
}

.rule-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    /* ÄNDRAT TILL BLÅTT */
    border-bottom: 1px solid rgba(0, 194, 255, 0.2);
}

.rule-block:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rule-block h3 {
    font-family: 'Audiowide', sans-serif;
    /* ÄNDRAT TILL BLÅTT */
    color: #00C2FF; 
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.rule-definition,
.rule-example {
    line-height: 1.6;
    color: rgba(245, 245, 245, 0.9);
    padding-left: 1rem; 
    position: relative;
}

.rule-definition {
    margin-bottom: 0.5rem;
}

.rule-definition strong,
.rule-example strong {
    color: #F5F5F5; 
}