
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

a {
    color: #38bdf8;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.topbar {
    background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
    color: #fff;
    padding: 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand a {
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.main-nav a {
    margin-left: 15px;
    font-size: 14px;
    color: #e5e7eb;
}
.main-nav a:hover {
    color: #fff;
}

.container {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 10px;
}

/* Genel kutu / kart yapısı */
.card {
    background: rgba(15,23,42,0.95);
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.3);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(148,163,184,0.25);
    padding-bottom: 5px;
}

.card-header h2, .card-header h3 {
    margin: 0;
    font-size: 16px;
}

/* Form alanları */
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.form-control, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
    width: 100%;
    padding: 7px 9px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
}
textarea {
    resize: vertical;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg,#22c55e,#16a34a);
    color: #f9fafb;
    font-size: 14px;
}
.btn:hover {
    filter: brightness(1.1);
}
.btn-secondary {
    background: #4b5563;
}
.btn-danger {
    background: #ef4444;
}

/* Tablolar */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th,
.table td {
    padding: 8px;
    border-bottom: 1px solid rgba(148,163,184,0.2);
}
.table th {
    background: rgba(15,23,42,0.9);
    text-align: left;
}

/* Uyarılar */
.alert {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}
.alert-success {
    background: rgba(22,163,74,0.15);
    border: 1px solid #22c55e;
}
.alert-error {
    background: rgba(220,38,38,0.15);
    border: 1px solid #ef4444;
}

/* Forum liste */
.category-title {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 5px;
}
.forum-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(148,163,184,0.2);
}
.forum-row:last-child {
    border-bottom: none;
}
.forum-main {
    flex: 1;
}
.forum-title {
    font-size: 15px;
    font-weight: 500;
}
.forum-desc {
    font-size: 13px;
    color: #9ca3af;
}
.forum-stats {
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
}

/* Son konular listesi */
.latest-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.latest-topics-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(148,163,184,0.15);
    font-size: 13px;
}
.latest-topics-list li:last-child {
    border-bottom: none;
}
.latest-topic-main {
    max-width: 70%;
}

/* Konu içi görünüm */
.posts {
    margin-top: 10px;
}
.post {
    display: flex;
    background: rgba(15,23,42,0.98);
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.3);
    margin-bottom: 12px;
}
.post-left {
    width: 220px;
    border-right: 1px solid rgba(148,163,184,0.25);
    padding: 10px;
    text-align: center;
}
.post-right {
    flex: 1;
    padding: 10px 12px;
}
.post-username {
    font-weight: 600;
    margin-bottom: 4px;
}
.post-rank {
    font-size: 12px;
    margin-bottom: 4px;
}
.post-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}
.post-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(59,130,246,0.7);
    margin-bottom: 6px;
}
.post-content {
    font-size: 14px;
    line-height: 1.5;
}
.post-signature {
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px dashed rgba(148,163,184,0.4);
    margin-top: 8px;
    padding-top: 4px;
}
.post-actions {
    margin-top: 8px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-actions a {
    margin-right: 8px;
}

/* Bildirim rozet */
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    background: #ef4444;
    color: white;
}

/* Sayfa alt kısmı */
.footer {
    border-top: 1px solid rgba(148,163,184,0.3);
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .post {
        flex-direction: column;
    }
    .post-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(148,163,184,0.25);
        display: flex;
        align-items: center;
        text-align: left;
        gap: 10px;
    }
    .post-avatar img {
        width: 72px;
        height: 72px;
    }
}
