/* =========================================
   GLOBAL
========================================= */

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #2a0066, #001133);
    color: #e6e6e6;
    text-align: center; /* Centrera ALL text */
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

p, li, a, span, div {
    color: #e6e6e6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Maxbredd för allt innehåll */
main, section, .content-wrap {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}


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

.site-header {
    background: #0a0a0a;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #ff00ff, #00ffff) 1;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.title-wrap {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;

    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 8px #ff00ff, 0 0 12px #00ffff;
    margin-bottom: 10px;
}

.main-nav {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.main-nav a {
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
}

.main-nav a:hover {
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff, 0 0 12px #ff00ff;
}


/* =========================================
   HERO SECTION
========================================= */

.hero {
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    padding: 100px 20px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1100px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    border-radius: inherit;
    pointer-events: none; /* <-- FIXAR ALLT */
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero .joke-box {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 12px rgba(255,255,255,0.2);
    max-width: 700px;
    margin: 0 auto; /* CENTRERA */
}

.hero .buttons {
    margin-top: 20px;
}


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

.btn-blue,
.btn-yellow {
    display: inline-block;
    margin: 20px auto;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-blue {
    background: linear-gradient(135deg, #00c2a8, #007bff);
    color: #fff;
}

.btn-yellow {
    background: linear-gradient(135deg, #ffcc00, #ff8800);
    color: #222;
}


/* =========================================
   CATEGORY & BATTLE GRIDS
========================================= */

.category-grid,
.battle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* CENTRERA */
    gap: 20px;
}


/* =========================================
   JOKE CARDS
========================================= */

.joke-card {
    background: rgba(20, 20, 40, 0.9);
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 12px rgba(0,255,255,0.2);
    max-width: 400px;
    margin: 0 auto; /* CENTRERA */
}


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

.submit-form form,
.category-form form {
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRERA */
    gap: 12px;
}

input, select, textarea {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    border-radius: 6px;
    border: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .title-wrap {
        font-size: 22px;
    }
}
.admin {
    max-width: 1100px;
    margin: 40px auto;
    text-align: center;
}

.admin-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.admin-card {
    background: rgba(20,20,40,0.9);
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 0 12px rgba(0,255,255,0.2);
}
.ip-log {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    margin: 20px auto;
    box-shadow: 0 0 12px rgba(0,255,255,0.2);
}

.ip-entry {
    margin-bottom: 15px;
}

.ip-entry .flag {
    font-size: 32px;
    margin-right: 10px;
}

.map-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
}

.map-link:hover {
    text-decoration: underline;
}
/* --- Skicka skämt --- */

.submit-joke {
    max-width: 600px;
    margin: 60px auto;
    background: rgba(0, 0, 0, 0.45);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,255,0.25);
    backdrop-filter: blur(6px);
    text-align: center;
}

.submit-joke h1 {
    margin-bottom: 10px;
    font-size: 32px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.submit-joke .subtext {
    color: #ccc;
    margin-bottom: 25px;
}

.joke-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    outline: none;
    box-shadow: 0 0 8px rgba(0,255,255,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ccc;
}

.submit-btn {
    background: #ff8800;
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px rgba(255,136,0,0.4);
}

.submit-btn:hover {
    background: #ffaa33;
    box-shadow: 0 0 15px rgba(255,170,51,0.6);
}
.pending-list {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    margin: 40px auto;
    box-shadow: 0 0 12px rgba(0,255,255,0.2);
}

.pending-item {
    margin-bottom: 20px;
}

.pending-actions {
    margin-top: 10px;
}

.btn-approve,
.btn-reject {
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

.btn-approve {
    background: #00cc66;
    color: #fff;
}

.btn-approve:hover {
    background: #00e67a;
}

.btn-reject {
    background: #cc3300;
    color: #fff;
}

.btn-reject:hover {
    background: #e64500;
}
