body {
    margin: 0;
    font-family: Verdana, Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

main {
    margin: 0;
}

.cancel-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #6b7280;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    box-sizing: border-box;
}

    .cancel-btn:hover {
        background-color: #4b5563;
    }
.info-box {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.turn-container {
    width: 90%;
    margin: 30px auto;
    text-align: center;
}

.car-card {
    display: inline-block;
    width: 280px;
    margin: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    vertical-align: top;
}

.car-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.car-card-title {
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
}

.car-card a {
    display: block;
    margin: 15px;
    padding: 10px;
    background-color: #2f5bea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

    .car-card a:hover {
        background-color: #2448b8;
    }

.team-details-page {
    width: 80%;
    margin: 30px auto;
}

.team-details-header {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.team-logo {
    margin-right: 20px;
}

    .team-logo img {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        object-fit: cover;
    }

.team-details-info h1 {
    margin: 0;
    color: #2f5bea;
}

.team-details-info p {
    margin-top: 10px;
    color: #666;
}

.players-section {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

    .players-section h2 {
        text-align: center;
        margin-bottom: 20px;
    }

.players-table {
    width: 100%;
    border-collapse: collapse;
}

    .players-table th {
        background-color: #2f5bea;
        color: white;
        padding: 12px;
        text-align: left;
    }

    .players-table td {
        padding: 12px;
        border-bottom: 1px solid #ddd;
    }

    .players-table tr:hover {
        background-color: #f5f5f5;
    }

.team-card {
    width: 300px;
    margin: 20px;
    display: inline-block;
    vertical-align: top;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.team-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.team-card-content {
    padding: 15px;
    text-align: center;
}

    .team-card-content h3 {
        margin: 0 0 10px 0;
    }

    .team-card-content p {
        color: #666;
        margin-bottom: 15px;
    }

    .team-card-content a {
        display: inline-block;
        padding: 8px 15px;
        background-color: #2f5bea;
        color: white;
        text-decoration: none;
        border-radius: 5px;
    }

        .team-card-content a:hover {
            background-color: #2448b8;
        }

.create-team-box {
    width: 400px;
    margin: 50px auto;
    padding: 25px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .create-team-box h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .create-team-box label {
        display: block;
        margin-top: 10px;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .create-team-box .form-input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }

    .create-team-box .submit-btn {
        width: 100%;
        margin-top: 20px;
        padding: 10px;
        background-color: #2f5bea;
        color: white;
        border: none;
        border-radius: 5px;
        font-weight: bold;
    }

        .create-team-box .submit-btn:hover {
            background-color: #2448b8;
            cursor: pointer;
        }
.login-box {
    width: 320px;
    margin: 80px auto;
    padding: 25px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    border-radius: 8px;
}

    .login-box h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .login-box label {
        font-weight: bold;
    }

    .login-box input[type="text"],
    .login-box input[type="password"] {
        width: 100%;
        padding: 10px;
        margin: 6px 0 15px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }

    .login-box input[type="submit"] {
        width: 100%;
        padding: 10px;
        background-color: #2f5bea;
        color: white;
        border: none;
        border-radius: 5px;
        font-weight: bold;
    }

        .login-box input[type="submit"]:hover {
            background-color: #2448b8;
            cursor: pointer;
        }

/* NAVBAR */

.top-header {
    height: 70px;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    height: 70px;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #13284b;
    font-size: 28px;
    font-weight: 800;
}

    .logo img {
        width: 38px;
        height: 38px;
        object-fit: contain;
    }

.logo-icon {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 34px;
}

    .nav-links a {
        color: #333;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
    }

        .nav-links a:hover {
            color: #1677ff;
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .nav-actions input {
        width: 190px;
        height: 36px;
        border: 1px solid #d1d5db;
        border-radius: 999px;
        padding: 0 15px;
        outline: none;
    }

.login-btn {
    background: #1f2937;
    color: white;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

    .login-btn:hover {
        background: #1677ff;
        color: white;
    }

.user-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d1d5db;
}

/* HERO */

.hero {
    min-height: 500px;
    background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.75)), url('/bilder/bg.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    max-width: 1300px;
    min-height: 500px;
    margin: 0 auto;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    max-width: 560px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 13px;
    background: #e8f1ff;
    color: #1677ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-text h1 {
    margin: 0;
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    color: #111827;
}

.hero-text p {
    margin-top: 18px;
    max-width: 500px;
    font-size: 17px;
    line-height: 1.6;
    color: #6b7280;
}

.hero-btn {
    display: inline-block;
    margin-top: 26px;
    padding: 13px 24px;
    background: #1677ff;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(22,119,255,0.22);
}

    .hero-btn:hover {
        background: #005fd8;
        color: white;
    }

.hero-image img {
    width: 550px;
    max-width: 100%;
    filter: drop-shadow(0 18px 24px rgba(0,0,0,0.18));
}

/* TURNERINGAR */

.tournaments-section {
    max-width: 1150px;
    margin: 0 auto;
    padding: 55px 35px;
}

.section-header {
    margin-bottom: 30px;
}

    .section-header span {
        color: #1677ff;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .section-header h2 {
        margin: 8px 0 0;
        font-size: 34px;
        color: #111827;
    }

.turn-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 330px));
    gap: 25px;
}

.turn-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    transition: 0.2s ease;
}

    .turn-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 32px rgba(0,0,0,0.11);
    }

.turn-card-image {
    width: 100%;
    height: 190px;
    background: #e5e7eb;
}


    .turn-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.turn-card-body {
    padding: 20px;
}

    .turn-card-body h3 {
        margin: 0;
        font-size: 22px;
        color: #111827;
    }

    .turn-card-body a {
        display: inline-block;
        margin-top: 16px;
        padding: 10px 18px;
        background: #1677ff;
        color: white;
        text-decoration: none;
        border-radius: 9px;
        font-weight: 700;
    }

        .turn-card-body a:hover {
            background: #005fd8;
            color: white;
        }

.empty-text {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
}

/* MOBIL */

@media (max-width: 850px) {
    .main-nav {
        padding: 0 18px;
    }

    .nav-links,
    .nav-actions input,
    .user-circle {
        display: none;
    }

    .hero-overlay {
        flex-direction: column;
        text-align: center;
        padding: 50px 22px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-image img {
        width: 240px;
    }

    .turn-container {
        grid-template-columns: 1fr;
    }
}
