/* Profile Photo and Avatar Styles */
/* Refactored from inline styles to semantic CSS classes */

/* ===== Avatar Components ===== */

/* Base avatar container */
.avatar-container {
    cursor: pointer;
    position: relative;
}

/* Profile photo image */
.profile-photo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Avatar with initials */
.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

/* Different sizes for initials */
.avatar-initials--small {
    font-size: 16px;
}

.avatar-initials--medium {
    font-size: 20px;
}

.avatar-initials--large {
    font-size: 80px;
}

/* Camera overlay on hover */
.camera-icon-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

/* Show camera overlay on avatar hover */
.avatar-container:hover .camera-icon-overlay {
    display: flex;
}

.camera-icon-overlay .fa-camera {
    color: white;
    font-size: 20px;
}

/* ===== Profile Photo Modal ===== */

/* Preview container */
.profile-photo-preview {
    text-align: center;
    margin-bottom: 20px;
}

/* Preview image (large) */
.profile-photo-preview-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

/* Preview initials (large) */
.profile-photo-preview-initials {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: bold;
    margin: 0 auto;
    border: 3px solid #ddd;
}

/* Upload button */
.file-upload-button {
    width: 100%;
    text-align: center;
}

/* Upload instructions */
.upload-instructions {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* ===== Helper/Hint Text ===== */

.hint-text {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.hint-text--small {
    font-size: 11px;
}

/* ===== Friend Status Badges ===== */

.friend-status-badge {
    color: var(--whatsapp-green);
}

.friend-request-badge {
    color: var(--whatsapp-blue);
}

/* ===== Status Creation Color Options ===== */

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 5px;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Specific color classes for status creation */
.color-option[data-color="#075e54"] {
    background-color: #075e54;
}

.color-option[data-color="#128c7e"] {
    background-color: #128c7e;
}

.color-option[data-color="#25d366"] {
    background-color: #25d366;
}

.color-option[data-color="#34b7f1"] {
    background-color: #34b7f1;
}

.color-option[data-color="#e74c3c"] {
    background-color: #e74c3c;
}

.color-option[data-color="#9b59b6"] {
    background-color: #9b59b6;
}

.color-option[data-color="#f39c12"] {
    background-color: #f39c12;
}

.color-option[data-color="#2c3e50"] {
    background-color: #2c3e50;
}

/* ===== Empty States ===== */

.empty-state {
    padding: 20px;
    text-align: center;
    color: #666;
}

.empty-state--error {
    color: #d32f2f;
}

.empty-state__icon {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state__icon--large {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 15px;
}

.empty-state__title {
    margin: 10px 0;
    font-size: 16px;
}

.empty-state__description {
    margin: 5px 0;
    font-size: 13px;
    opacity: 0.8;
}

.empty-state__hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* ===== Reply Reference ===== */

.reply-reference {
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid #075e54;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    cursor: pointer;
}

.reply-reference__author {
    font-weight: bold;
    font-size: 12px;
    color: #075e54;
    margin-bottom: 3px;
}

.reply-reference__text {
    font-size: 13px;
    color: #667781;
}

/* Reply bar in compose area */
.reply-bar {
    background: rgba(7, 94, 84, 0.1);
    border-left: 3px solid #075e54;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reply-bar__cancel {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #667781;
}

.reply-bar__cancel:hover {
    color: #000;
}

/* ===== Voice Message Visualization ===== */

.voice-message-bar {
    width: 3px;
    background: linear-gradient(to top, #075e54, #25d366);
    margin: 0 2px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* ===== Group Info Icon ===== */

.info-icon {
    font-size: 14px;
    opacity: 0.7;
    margin-left: 5px;
}

/* ===== No Results Message ===== */

.no-results-message {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* ===== Status Text Display ===== */

.status-text {
    padding: 20px;
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-align: center;
    word-wrap: break-word;
}

/* ===== Responsive Adjustments ===== */

@media (max-width: 768px) {
    .avatar-initials--large {
        font-size: 60px;
    }
    
    .profile-photo-preview-img,
    .profile-photo-preview-initials {
        width: 150px;
        height: 150px;
    }
    
    .profile-photo-preview-initials {
        font-size: 60px;
    }
    
    .empty-state__icon--large {
        font-size: 36px;
    }
    
    .status-text {
        font-size: 20px;
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .avatar-initials--medium {
        font-size: 16px;
    }
    
    .camera-icon-overlay .fa-camera {
        font-size: 16px;
    }
    
    .profile-photo-preview-img,
    .profile-photo-preview-initials {
        width: 120px;
        height: 120px;
    }
    
    .profile-photo-preview-initials {
        font-size: 48px;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
        margin: 3px;
    }
}

/* ===== Utility Classes ===== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.w-100 {
    width: 100%;
}
