/* GENEL AYARLAR */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* NAVBAR */
nav {
    background-color: #1e3c2f;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

nav ul { display: flex; align-items: center; gap: 20px; }
nav a { color: #ecf0f1; font-weight: 500; }
nav a:hover { color: #2ecc71; }
.nav-btn { padding: 8px 20px; border-radius: 30px; font-weight: 600; }
.add-btn { background: rgba(255,255,255,0.1); color: #f1c40f !important; border: 1px solid #f1c40f; }
.logout-btn { background: #e74c3c; color: white !important; }
.login-btn { background: #27ae60; color: white !important; }

/* HERO SECTION (BURASI ÇOK ÖNEMLİ) */
.hero {
    background: linear-gradient(rgba(30, 60, 47, 0.8), rgba(30, 60, 47, 0.8)), 
                url('https://images.unsplash.com/photo-1452570053594-1b985d6ea890?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white; /* Yazılar beyaz */
    margin-bottom: 50px;
    border-radius: 0 0 50px 50px;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 10px; font-weight: 700; }
.hero-content p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px auto; opacity: 0.9; }

.cta-button {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 5px;
}
.cta-button:hover { background: #219150; transform: translateY(-3px); color: white; }
.secondary-btn { background: transparent; border: 2px solid white; }
.secondary-btn:hover { background: white; color: #1e3c2f; }

/* ÖZELLİKLER */
.features {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    gap: 30px;
    flex-wrap: wrap;
}
.feature-card {
    flex: 1;
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-width: 250px;
}
.feature-icon { font-size: 3rem; margin-bottom: 20px; display: block; }

/* DİĞER SAYFALAR */
.form-container { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); max-width: 500px; margin: 40px auto; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }
button[type="submit"] { background-color: #27ae60; color: white; padding: 14px; border: none; border-radius: 8px; cursor: pointer; width: 100%; font-size: 1.1rem; margin-top: 20px; }

/* MESAJ PANOSU */
.board-container { width: 90%; max-width: 1200px; margin: auto; padding-top: 20px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.post-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-content { padding: 20px; }

footer { text-align: center; padding: 40px; background: #1e3c2f; color: #889e95; margin-top: auto; }
/* --- ARAMA ÇUBUĞU DÜZELTMESİ --- */
.search-container {
    background: white;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto; 
    margin-right: auto;
}

.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.search-input {
    flex: 1; 
    border: none;
    background: transparent;
    outline: none;
    padding: 10px;
}

/* Buton genişliğini otomatiğe çekiyoruz */
.search-btn, .reset-btn {
    width: auto !important; 
    margin-top: 0 !important;
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-btn { background-color: #27ae60; color: white; }
.reset-btn { background-color: #f1f2f6; color: #555; text-decoration: none; }