/* Genel Ayarlar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #1e1e2e;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

header .logo img {
    height: 50px;
}

header .logo h1 {
    font-size: 24px;
    color: #ffffff;
}

header nav ul {
    display: flex;
    gap: 20px;
}

header nav ul li {
    list-style: none;
}

header nav ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #bbb;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #a855f7;
}

/* Ana İçerik */
main {
    flex: 1;
    padding: 40px 20px;
}

.translator {
    background: #1e1e2e;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    margin: 0 auto;
}

.translator h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #a855f7;
}

.input-section, .output-section {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 120px;
    background: #2c2c3a;
    border: none;
    border-radius: 5px;
    padding: 15px;
    color: #ffffff;
    font-size: 16px;
    resize: none;
}

textarea::placeholder {
    color: #777;
}

.language-select {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.language-select label {
    font-size: 16px;
    color: #bbb;
}

select {
    background: #2c2c3a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}

/* Oynat Butonu */
button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #a855f7;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
}

button img {
    height: 24px;
    filter: invert(1);
}

button:hover {
    background: #9333ea;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #1e1e2e;
    padding: 20px;
    text-align: center;
    color: #bbb;
    margin-top: auto;
}

footer p {
    font-size: 14px;
    color: #777;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        gap: 15px;
    }

    header .container {
        flex-direction: column;
    }

    .translator {
        padding: 20px;
    }

    textarea {
        height: 100px;
    }
}
