/* ============================================
   conversation.css - Mesajlaşma Sayfası
   ============================================ */

.conv-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.conv-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

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

.conv-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Sohbet Kartı */
.conv-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    min-height: 500px;
}

/* Header */
.conv-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.conv-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.conv-back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.conv-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 1;
}

.conv-user-avatar {
    position: relative;
}

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

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

.conv-username {
    font-weight: 600;
    color: white;
    font-size: 16px;
}

.premium-icon {
    color: #ffd700;
    font-size: 12px;
    margin-left: 4px;
}

.conv-status {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

.text-online {
    color: #2ecc71;
}

.text-offline {
    color: rgba(255,255,255,0.6);
}

/* Mesaj Alanı */
.conv-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

/* Tarih Ayracı */
.conv-date-divider {
    text-align: center;
    margin: 15px 0;
}

.conv-date-divider span {
    background: #e0e0e0;
    color: #666;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Boş Mesaj */
.conv-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.conv-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Mesaj Kartı */
.conv-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.message-mine {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
}

.message-mine .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-other .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-bubble p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    display: block;
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

/* Mesaj Giriş Alanı */
.conv-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.conv-form {
    width: 100%;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.input-wrapper textarea {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: all 0.2s;
}

.input-wrapper textarea:focus {
    outline: none;
    border-color: #667eea;
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.05);
}

/* Sidebar Widget */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #2c3e50;
}

.sidebar-widget h4 i {
    color: #667eea;
    margin-right: 8px;
}

/* Kullanıcı Bilgi Widget */
.widget-user-info {
    text-align: center;
}

.user-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.user-info-avatar-link {
    display: block;
}

.user-info-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.user-info-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

.user-info-name:hover {
    color: #667eea;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
}

.error-404 i {
    font-size: 64px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-404 h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
}

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

@media (max-width: 768px) {
    .conv-card {
        height: calc(100vh - 120px);
        min-height: 400px;
    }
    
    .message-bubble {
        max-width: 80%;
    }
    
    .conv-header {
        padding: 12px 15px;
    }
    
    .conv-messages {
        padding: 15px;
    }
    
    .conv-username {
        font-size: 14px;
    }
    
    .avatar-conv {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .conv-container {
        padding: 0 10px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .message-bubble p {
        font-size: 13px;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
    }
}