/* ============================================
   messages.css - Mesajlar Sayfası
   ============================================ */

.messages-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.messages-main { flex: 1; min-width: 0; order: 1; }
.messages-sidebar { width: 340px; flex-shrink: 0; order: 2; }

.messages-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.messages-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.btn-new-message {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-new-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

/* Konuşma Listesi */
.conversation-list {
    display: flex;
    flex-direction: column;
}

.conversation-item {
    display: flex;
    gap: 15px;
    padding: 18px 25px;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f5f5f5;
}

.conversation-item:hover {
    background: #f8f9fa;
}

.conversation-item.unread {
    background: #f0f4ff;
}

.conversation-item:last-child {
    border-bottom: none;
}

.conv-avatar {
    position: relative;
    flex-shrink: 0;
}

.conv-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #2ed573;
    border: 2px solid white;
    border-radius: 50%;
}

.conv-content {
    flex: 1;
    min-width: 0;
}

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

.conv-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.premium-icon {
    color: #ffd700;
    font-size: 13px;
}

.conv-time {
    font-size: 12px;
    color: #999;
}

.conv-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conv-preview p {
    margin: 0;
    font-size: 13px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unread-badge {
    background: #667eea;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 2px;
}

/* Boş */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: #ddd;
    display: block;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #333;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: #999;
    margin: 0 0 20px 0;
}

.btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .messages-layout { flex-direction: column; }
    .messages-main { order: 1; width: 100%; }
    .messages-sidebar { order: 2; width: 100%; }
}

@media (max-width: 768px) {
    .messages-header {
        padding: 20px 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .conversation-item {
        padding: 15px;
    }
    
    .conv-avatar img {
        width: 45px;
        height: 45px;
    }
}