/* style.css - EN GÜNCEL VERSİYON - 13 Kasım 2025 */
/* Tüm sayfalar için ortak stil */

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

body {
    background: #1a1a2e;
    color: #eee;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === BAŞLIK === */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 300;
}

/* === MESAJ KARTLARI === */
.message-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 14px;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.message-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

 .btn {
            padding: 14px 32px;
            font-size: 1.1rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.content strong {
    display: block;
    margin-bottom: 6px;
    color: #ffd700;
}

.content p {
    margin-bottom: 8px;
    color: #ddd;
}

.content small {
    color: #999;
    font-size: 0.85rem;
}

.no-messages {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 30px;
    font-size: 1.1rem;
}

/* === FORM BÖLÜMÜ === */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    transition: 0.2s;
}

.message-form input:focus,
.message-form textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.message-form input::placeholder,
.message-form textarea::placeholder {
    color: #aaa;
}

/* === CAPTCHA SATIRI === */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.captcha-image {
    height: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: #1a1a2e;
    image-rendering: pixelated;
}

.refresh-btn {
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.refresh-btn:hover {
    background: #ffed4e;
    transform: scale(1.1);
}

.captcha-row input {
    flex: 1;
    min-width: 120px;
}

/* === GÖNDER BUTONU === */
.submit-btn {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a2e;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* === UYARILAR === */
.alert {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.error {
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid crimson;
    color: #ff6b6b;
}

.alert.success {
    background: rgba(50, 205, 50, 0.2);
    border: 1px solid limegreen;
    color: #90ee90;
}

/* === FOOTER === */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* === ADMIN GİRİŞ === */
.admin-body {
    background: #16213e;
}

.admin-login {
    max-width: 400px;
    margin: 80px auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.admin-login h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.admin-login input {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
}

.admin-login button {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a2e;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.admin-login button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* === ADMIN PANELİ === */
.admin-container {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.admin-header h1 {
    font-size: 2rem;
    color: #ffd700;
}

.logout-btn {
    background: #dc143c;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #b22222;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.admin-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-weight: bold;
}

.actions .btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.2s;
    min-width: 60px;
    text-align: center;
}

.btn.approve {
    background: #32cd32;
    color: white;
}

.btn.reject {
    background: #dc143c;
    color: white;
}

.btn.delete {
    background: #8B0000;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* === MOBİL UYUMLULUK === */
@media (max-width: 768px) {
    h1 {
        font-size: 2.3rem;
    }
    .message-card {
        flex-direction: column;
        text-align: center;
    }
    .avatar {
        margin: 0 auto 10px;
    }
    .captcha-row {
        justify-content: center;
    }
    .captcha-image {
        height: 50px;
    }
    .refresh-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h1 {
        font-size: 2rem;
    }
    .form-section,
    .admin-login,
    .admin-container {
        padding: 20px;
    }
    .admin-table {
        font-size: 0.8rem;
    }
    .actions .btn {
        display: block;
        margin: 4px 0;
        font-size: 0.75rem;
    }
}

/* Admin Butonları */
.actions .btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.2s;
    min-width: 60px;
    text-align: center;
}

.btn.approve {
    background: #32cd32;
    color: white;
}

.btn.reject {
    background: #dc143c;
    color: white;
}

.btn.delete {
    background: #8B0000;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Mobil */
@media (max-width: 600px) {
    .admin-table {
        font-size: 0.8rem;
    }
    .actions .btn {
        display: block;
        margin: 4px 0;
        font-size: 0.75rem;
    }
}
.admin-reply {
    margin-top: 15px;
    padding: 12px;
    background: rgba(238, 162, 67, 0.15);
    border-left: 4px solid #eea243;
    border-radius: 8px;
    font-size: 0.95em;
}
.admin-reply strong {
    color: #eea243;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.modal-content {
    background: #16213e;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    border: 2px solid #eea243;
    color: white;
}
.close { float: right; font-size: 28px; cursor: pointer; }
.reply-btn, .save-reply-btn {
    background: #eea243; color: #000; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer;
}
.reply-btn:hover, .save-reply-btn:hover { background: #ffb84d; }

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400;500;700&display=swap');
