* {
    box-sizing: border-box;
}

body {
    transition: all 0.4s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #e7e7e7;
    color: #212529;
}

body.dark {
    background-color: #121212;
    color: #E0E0E0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
    flex-grow: 1;
}

.header {
    padding: 20px;
    text-align: center;
    background-color: #F8F8F8;
    border-bottom: 4px solid #00A36C;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body.dark .header {
    background-color: #1E1E1E;
    border-color: #C0392B;
    box-shadow: 0 2px 4px rgba(192, 57, 43, 0.2);
}

.footer {
    padding: 10px;
    text-align: center;
    font-size: 10pt;
    margin-top: auto;
    background-color: #F0F0F0;
    color: #6C757D;
}

body.dark .footer {
    background-color: #0A0A0A;
    color: #999;
}

h1 { font-size: 24pt; margin: 0; color: #008080; }
body.dark h1 { color: #FF6B6B; }

h3 { 
    font-size: 16pt; 
    padding-bottom: 5px; 
    margin-top: 30px; 
    color: #00A36C; 
    border-bottom: 2px solid #00A36C; 
}
body.dark h3 { color: #E0E0E0; border-bottom: 2px solid #FF6B6B; }

h4 { 
    font-size: 14pt; 
    padding-bottom: 5px; 
    margin-top: 30px; 
    color: #146b4e; 
    border-bottom: 2px solid #00A36C; 
}
body.dark h4 { color: #E0E0E0; border-bottom: 2px solid #FF6B6B; }

hr {
    height: 4px;
    background-color: #00A36C;
    border: none;
    border-radius: 10px;
    margin: 10px 0 30px 0;
    flex-basis: 100%;
}

body.dark hr {
    background-color: #C0392B;
}

.tema-switcher { text-align: right; margin-bottom: 20px; }

.tema-link {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12pt;
    margin-left: 5px;
    cursor: pointer;
    border: none;
    background-color: #00A36C;
    color: white;
}

body.dark .tema-link {
    background-color: #C0392B;
    border-color: #992D22;
}

.yazar-kutu {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

body.dark .yazar-kutu {
    background-color: #1E1E1E;
    border-color: #C0392B;
}

.proje-konteyner {
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    border: 1px solid #3bdfa8;
    padding: 20px;
}

.proje-konteyner h4 {
    flex-basis: 100%;
    text-align: center;
    margin-top: 0;
}

.proje-kutu {
    flex: 1 1 calc(45% - 20px);
    min-width: 280px;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.proje-kutu:hover {
    transform: translateY(-5px);
}

body.dark .proje-kutu {
    border: 1px solid #C0392B;
    background-color: #1E1E1E;
    box-shadow: 0 4px 8px rgba(192, 57, 43, 0.3);
}

.proje-kutu a, .yazar-kutu a { color: #17A2B8; font-weight: bold; text-decoration: none; }
body.dark .proje-kutu a, body.dark .yazar-kutu a { color: #FFD700; }

.proje-kutu img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin: 10px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    .proje-konteyner {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 10px;
    }
    .proje-kutu {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }
    .proje-kutu img {
        max-width: 100%;
        height: auto;
    }
}