body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1em 0;
}

header h1 a {
    color: white;
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

nav a {
    color: #ecf0f1;
    background: #34495e;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

nav a:hover {
    background: #3498db;
}
/* Header bar */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger button */
.hamburger {
    font-size: 22px;
    background: none;
    border: none;
    color: #ecf0f1;
    cursor: pointer;
    display: none; /* desktopta gizli */
}

/* Navbar */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

nav a, .dropbtn {
    background: #34495e;
    color: #ecf0f1;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

nav a:hover, .dropbtn:hover {
    background: #3498db;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #2c3e50;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: #3498db;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobil görünüm */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* mobilde göster */
    }

    nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: #2c3e50;
        padding: 15px;
        border-radius: 8px;
    }

    nav.active {
        display: flex;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-top: 5px;
    }
}
.ad-banner, .ad-native, .ad-content, .ad-footer {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    font-size: 14px;
    color: #666;
    border-radius: 6px;
}

/* Native reklam kart aralarında */
.ad-native {
    grid-column: span 2;
}

/* İçerik içi reklam */
.ad-content {
    margin: 20px 0;
}
/* Tema butonu */
.theme-toggle {
    font-size: 16px;
    background: #34495e;
    color: #ecf0f1;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: #3498db;
}

/* Dark mode genel */
body.dark-mode {
    background: #1c1c1c;
    color: #ddd;
}

body.dark-mode header {
    background: #111;
}

body.dark-mode nav a,
body.dark-mode .dropbtn,
body.dark-mode .hamburger,
body.dark-mode .theme-toggle {
    background: #2c2c2c;
    color: #ddd;
}

body.dark-mode nav a:hover,
body.dark-mode .dropbtn:hover,
body.dark-mode .theme-toggle:hover {
    background: #3498db;
    color: #fff;
}

body.dark-mode .download-card {
    background: #2a2a2a;
    color: #ddd;
}

body.dark-mode .download-detail {
    background: #2a2a2a;
    color: #ddd;
}

body.dark-mode footer {
    background: #111;
    color: #bbb;
}

body.dark-mode .ad-banner,
body.dark-mode .ad-native,
body.dark-mode .ad-content,
body.dark-mode .ad-footer {
    background: #2c2c2c;
    border: 1px dashed #555;
    color: #bbb;
}


main {
    padding: 20px 0;
}

footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1em 0;
    margin-top: 20px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Admin Form Stili */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="url"],
form textarea,
form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    transition: border 0.2s;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #3498db;
    outline: none;
}

form button {
    background: #3498db;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.3s;
}

form button:hover {
    background: #2980b9;
}

/* Dashboard Stil */
.dashboard-container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.dashboard-container h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.dashboard-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dashboard-menu .card {
    background: #3498db;
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.dashboard-menu .card:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.dashboard-menu .card.danger {
    background: #e74c3c;
}

.dashboard-menu .card.danger:hover {
    background: #c0392b;
}
/* İstatistik Kartları */
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: #2ecc71;
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 150px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card h2 {
    font-size: 32px;
    margin: 0;
}

.stat-card p {
    margin: 5px 0 0;
    font-size: 14px;
}

/* Son içerikler listesi */
.latest {
    margin-top: 40px;
    text-align: left;
}

.latest h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.latest ul {
    list-style: none;
    padding: 0;
}

.latest li {
    padding: 8px 10px;
    margin-bottom: 5px;
    background: #ecf0f1;
    border-radius: 6px;
    font-size: 14px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.download-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-card img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.download-card h3 {
    margin: 10px 0 5px;
    font-size: 16px;
}

.download-card p {
    font-size: 13px;
    color: #555;
}
.download-detail {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
}

.download-detail img {
    max-width: 300px;
    margin-bottom: 20px;
}

.download-detail h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.download-detail .desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.download-detail ul {
    text-align: left;
    margin: 20px auto;
    display: inline-block;
}

.download-detail li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.download-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #2980b9;
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.download-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.download-card img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.download-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #2c3e50;
}

.download-card h3 a {
    text-decoration: none;
    color: inherit;
}

.download-card h3 a:hover {
    color: #3498db;
}

.download-card p {
    font-size: 14px;
    color: #666;
}
