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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #2c5f6f 0%, #4a8fa0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sayfa Geçişleri */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Ana Sayfa (Landing Page) */
#landing-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2c5f6f 0%, #4a8fa0 100%);
}

.background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    z-index: 1;
}

.city-silhouette {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 150"><path d="M0,150 L0,100 L50,100 L50,80 L100,80 L100,60 L150,60 L150,90 L200,90 L200,40 L250,40 L250,70 L300,70 L300,50 L350,50 L350,100 L400,100 L400,30 L450,30 L450,80 L500,80 L500,60 L550,60 L550,110 L600,110 L600,45 L650,45 L650,85 L700,85 L700,35 L750,35 L750,95 L800,95 L800,55 L850,55 L850,105 L900,105 L900,25 L950,25 L950,75 L1000,75 L1000,90 L1050,90 L1050,65 L1100,65 L1100,120 L1150,120 L1150,40 L1200,40 L1200,150 Z" fill="%23000"/></svg>') no-repeat center bottom;
    background-size: cover;
    opacity: 0.8;
}

.grass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #2d5016 0%, #4a7c2a 50%, #5a8f35 100%);
}

.grass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,20 Q5,5 10,20 Q15,8 20,20 Q25,3 30,20 Q35,12 40,20 Q45,6 50,20 Q55,9 60,20 Q65,4 70,20 Q75,11 80,20 Q85,7 90,20 Q95,13 100,20 L100,20 L0,20 Z" fill="%235a8f35"/></svg>') repeat-x;
    background-size: 100px 20px;
}

.soldiers {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 100"><g fill="%23654321"><circle cx="50" cy="30" r="15"/><rect x="45" y="45" width="10" height="30"/><circle cx="120" cy="30" r="15"/><rect x="115" y="45" width="10" height="30"/><circle cx="190" cy="30" r="15"/><rect x="185" y="45" width="10" height="30"/><circle cx="260" cy="30" r="15"/><rect x="255" y="45" width="10" height="30"/><circle cx="330" cy="30" r="15"/><rect x="325" y="45" width="10" height="30"/><circle cx="400" cy="30" r="15"/><rect x="395" y="45" width="10" height="30"/><circle cx="470" cy="30" r="15"/><rect x="465" y="45" width="10" height="30"/><circle cx="540" cy="30" r="15"/><rect x="535" y="45" width="10" height="30"/></g></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.9;
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 50px;
    gap: 100px;
}

.left-section {
    flex: 1;
    color: white;
    text-align: left;
}

.logo {
    margin-bottom: 30px;
}

.logo-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: white;
    color: #2c5f6f;
    font-size: 48px;
    font-weight: bold;
    font-family: Impact, sans-serif;
    text-align: center;
    line-height: 80px;
    border-radius: 10px;
    transform: rotate(-5deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.left-section h1 {
    font-family: Impact, sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.welcome-text {
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hashtag {
    color: #ffd700;
    font-weight: bold;
}

.right-section {
    flex: 0 0 400px;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.form-container h2 {
    color: #2c5f6f;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.form-subtitle a {
    color: #2c5f6f;
    text-decoration: none;
    font-weight: bold;
}

.form-subtitle a:hover {
    text-decoration: underline;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form.hidden {
    display: none;
}

.account-type {
    margin-bottom: 15px;
}

.account-type label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c5f6f;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.account-info {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #2c5f6f;
}

.terms {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.submit-btn {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Forum Sayfası */
#forum-page {
    background: #f5f5f5;
}

.forum-header {
    background: linear-gradient(135deg, #2c5f6f 0%, #4a8fa0 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.logo-small .logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    color: #2c5f6f;
    font-size: 24px;
    line-height: 40px;
    border-radius: 5px;
    transform: rotate(-5deg);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

#logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.forum-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.forum-section {
    display: none;
}

.forum-section.active {
    display: block;
}

/* Gönderiler */
.posts-container h2 {
    color: #2c5f6f;
    margin-bottom: 20px;
    font-size: 28px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c5f6f;
    margin: 0;
}

.post-meta {
    font-size: 14px;
    color: #666;
}

.post-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

/* Gönderi Oluşturma */
.create-post-container h2 {
    color: #2c5f6f;
    margin-bottom: 20px;
    font-size: 28px;
}

#create-post-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#create-post-form input,
#create-post-form textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s;
}

#create-post-form input:focus,
#create-post-form textarea:focus {
    outline: none;
    border-color: #2c5f6f;
}

#create-post-form textarea {
    resize: vertical;
    min-height: 200px;
}

/* Profil */
.profile-container h2 {
    color: #2c5f6f;
    margin-bottom: 20px;
    font-size: 28px;
}

#profile-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.pagination button {
    background: #2c5f6f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: #4a8fa0;
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

/* Bildirim */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        gap: 50px;
        padding: 20px;
    }
    
    .right-section {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    
    .left-section h1 {
        font-size: 36px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

