@import url("style.css");

.post-form {
    max-width: 420px;
    margin: 40px auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.post-form input[type="password"] {
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    outline: none;
    transition: 0.2s;
}

.post-form input[type="password"]:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.post-form input[type="text"] {
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    outline: none;
    transition: 0.2s;
}

.post-form input[type="text"]:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* File upload */
.file-upload {
    border: 2px dashed #e63946;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    color: #e63946;
    font-weight: 500;
    transition: 0.2s;
}

.file-upload:hover {
    background: rgba(230, 57, 70, 0.08);
}

/* Submit button */
.post-form button {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #e63946;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.post-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(230, 57, 70, 0.35);
}

/* ── Kategori Seçimi ────────────── */

.post-form select {
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    outline: none;
    transition: 0.2s;
    background: white;
    cursor: pointer;
}

.post-form select:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

#newCategoryFields {
    flex-direction: column;
    gap: 10px;
}

#newCategoryFields input {
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    outline: none;
    transition: 0.2s;
}

#newCategoryFields input:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}