* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    line-height: 1.5;
}

/* Navbar */
.navbar {
    background: #1877f2;
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.profile-pic-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px; /* Üstten 30px boşluk */
}

/* İlk elementler için ek boşluk */
.main-container > *:first-child {
    margin-top: 10px;
}

/* Post kartları için üst boşluk */
.post-card {
    margin-top: 25px;
}

/* Admin paneli için */
.main-container h2:first-child,
.main-container h3:first-child {
    margin-top: 20px;
}

/* Create post için */
.create-post {
    margin-top: 20px;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 16px;
    }
    
    body {
        padding-top: 70px; /* Navbar yüksekliği kadar */
    }
}

/* Create Post */
.create-post {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.post-input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.post-input-area img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-input {
    flex: 1;
    border: none;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #e4e6eb;
    padding-top: 8px;
}

.post-action-btn {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.post-action-btn:hover {
    background: #f0f2f5;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #050505;
}

.post-info span {
    font-size: 13px;
    color: #65676b;
}

/* Post Content */
.post-content {
    padding: 0 16px 12px;
    font-size: 15px;
    line-height: 1.5;
}

.post-text-short, .post-text-full, .post-text {
    color: #050505;
}

/* Ok Butonları */
.arrow-btn {
    color: #1877f2;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 4px;
    user-select: none;
    display: inline-block;
    line-height: 1;
}

.arrow-btn:hover {
    opacity: 0.7;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    color: #65676b;
    font-size: 14px;
    border-bottom: 1px solid #e4e6eb;
}

.post-buttons {
    display: flex;
    padding: 4px 16px;
}

.post-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    color: #65676b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
}

.post-btn:hover {
    background: #f0f2f5;
}

.post-btn.liked {
    color: #1877f2;
}

/* Comments */
.comments-section {
    padding: 12px 16px;
    background: #f0f2f5;
}

.comment {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.comment img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-content {
    background: white;
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 85%;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 2px;
}

.admin-badge {
    color: #1877f2;
    font-size: 11px;
    margin-left: 4px;
}

.comment-text {
    font-size: 14px;
    color: #050505;
}

.delete-comment {
    color: #dc3545;
    font-size: 12px;
    text-decoration: none;
    padding: 4px 8px;
    opacity: 0;
}

.comment:hover .delete-comment {
    opacity: 1;
}

.comment-input-area {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment-input {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 14px;
}

/* Profile */
.profile-header {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cover-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.profile-info {
    padding: 0 16px 16px;
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin-top: -60px;
    object-fit: cover;
}

.profile-name {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 700;
}

/* Auth */
.auth-container {
    max-width: 360px;
    margin: 80px auto;
    background: white;
    padding: 24px;
    border-radius: 8px;
}

.auth-container h2 {
    text-align: center;
    color: #1877f2;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: #65676b;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}
/* Yorum işlem butonları */
.comment-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.comment:hover .comment-actions {
    opacity: 1;
}

.edit-btn, .delete-btn {
    text-decoration: none;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.edit-btn:hover {
    background: #e7f3ff;
}

.delete-btn:hover {
    background: #ffe7e7;
}

/* Yorum düzenleme formu */
.comment-edit-form {
    padding: 8px 0;
    margin-bottom: 8px;
}
/* Logo Stilleri */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.site-logo-text {
    color: white;
}

.site-logo-img {
    height: 52px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Hem resim hem metin varsa */
.logo:has(.site-logo-img):has(.site-logo-text) {
    gap: 8px;
}

.logo:has(.site-logo-img):has(.site-logo-text) .site-logo-img {
    height: 28px;
}

.logo:has(.site-logo-img):has(.site-logo-text) .site-logo-text {
    font-size: 20px;
}