/* ================== GENEL ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: #fff;
}

/* ================== NAVBAR ================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #1e1e1e;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #e50914;
}

nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
}

nav a:hover {
    color: #e50914;
}

/* ================== MANŞET / SLIDER ================== */
.featured {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.featured-slider {
    position: relative;
    width: 75%;
    max-width: 850px;
    height: 300px;
}

.featured-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.featured-card.active {
    opacity: 1;
}

/* Resim üstü yazı */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    border-radius: 0 0 14px 14px;
}

.overlay h1 {
    font-size: 22px;
}

.overlay p {
    margin-top: 5px;
    font-size: 14px;
    color: #ddd;
}

/* ================== INDEX & GAMES ================== */
.news {
    padding: 40px;
}

.news h2 {
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.03);
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin: 10px 0 5px;
    color: #e50914;
}

.card p {
    font-size: 14px;
    color: #ccc;
}

/* ================== HABER DETAY ================== */
.news-detail {
    max-width: 800px;
    margin: 40px auto;
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
}

.news-detail h2 {
    text-align: center;
    margin-bottom: 20px;
}

.news-detail img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.news-detail p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #ddd;
}

.news-detail h3 {
    margin: 20px 0 10px;
    color: #e50914;
}

.news-detail ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.back-link {
    color: #e50914;
    text-decoration: none;
    font-weight: bold;
}

/* ================== HABER LİSTESİ (NEWS.HTML) ================== */
.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.news-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-item span {
    font-size: 15px;
}

.news-item:hover {
    background-color: #ff4757;
    transform: translateX(5px);
}

/* ================== İLETİŞİM FORMU ================== */
.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff4757;
    outline: none;
}

.contact-form button {
    width: fit-content;
    padding: 12px 30px;
    background-color: #ff4757;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #e84118;
}

/* ================== FOOTER ================== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1e1e1e;
    margin-top: 40px;
}

/* ================== TABLET ================== */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    nav a {
        margin-left: 10px;
        font-size: 14px;
    }

    .featured-slider {
        width: 90%;
        height: 250px;
    }

    .overlay h1 {
        font-size: 18px;
    }

    .news {
        padding: 25px;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .news-detail {
        padding: 20px;
    }
}

/* ================== TELEFON ================== */
@media (max-width: 480px) {

    header {
        padding: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 5px 10px;
        font-size: 13px;
    }

    .featured-slider {
        height: 200px;
    }

    .overlay h1 {
        font-size: 16px;
    }

    .overlay p {
        font-size: 12px;
    }

    .news {
        padding: 20px 15px;
    }

    .card h3 {
        font-size: 15px;
    }

    .news-detail {
        margin: 20px 10px;
        padding: 18px;
    }

    .news-item {
        gap: 10px;
        padding: 10px;
    }

    .news-item img {
        width: 50px;
        height: 35px;
    }

    footer {
        font-size: 13px;
    }
}