/* DmApp Social Features Styles */

/* ===== STAR RATING STYLES ===== */

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.star-selector {
    display: inline-flex;
    gap: 8px;
    cursor: pointer;
}

.star-selector .star {
    font-size: 32px;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.4;
}

.star-selector .star:hover,
.star-selector .star.filled {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.star-selector .star:active {
    transform: scale(0.95);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar-label {
    font-size: 14px;
    font-weight: 600;
    min-width: 60px;
}

.rating-bar-fill {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.rating-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, #00FF00, #00FF00);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.rating-bar-count {
    font-size: 13px;
    color: #666;
    min-width: 40px;
    text-align: right;
}

/* ===== REVIEW CARD STYLES ===== */

.review-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.review-timestamp {
    font-size: 12px;
    color: #666;
}

.review-rating {
    font-size: 18px;
}

.review-text {
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    margin: 12px 0;
}

.review-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
}

.review-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-action-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.05);
}

.review-action-btn.active {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00FF00;
}

.review-replies {
    margin-top: 12px;
    padding-left: 24px;
    border-left: 2px solid rgba(0, 255, 0, 0.2);
}

.review-reply {
    padding: 10px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

/* ===== FRIENDS SECTION STYLES ===== */

.friends-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 18px;
    padding: 20px;
    margin: 20px 0;
}

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

.friends-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.friends-tabs {
    display: flex;
    gap: 10px;
}

.friends-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.friends-tab.active {
    background: linear-gradient(135deg, #00FF00, #00FF00);
    border-color: #00FF00;
}

.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.friend-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.friend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.3);
}

.friend-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(0, 255, 0, 0.5);
    margin: 0 auto 12px;
}

.friend-name {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.friend-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    display: inline-block;
}

.friend-badge.private {
    background: rgba(0, 255, 0, 0.3);
}

.friend-badge.public {
    background: rgba(100, 100, 255, 0.2);
}

/* ===== PROMOTE MODAL STYLES ===== */

.promote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.promote-modal.active {
    display: flex;
}

.promote-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.promote-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.promote-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.promote-message-input {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    font-size: 15px;
    color: #000;
    resize: vertical;
    margin-bottom: 16px;
}

.promote-message-input:focus {
    outline: none;
    border-color: #00FF00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.promote-section {
    margin-bottom: 20px;
}

.promote-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.promote-audience-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.promote-audience-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.promote-audience-option:hover {
    background: rgba(0, 255, 0, 0.1);
}

.promote-audience-option.selected {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00FF00;
}

.promote-tag-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    font-size: 14px;
}

.promote-tagged-users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tagged-user-chip {
    padding: 6px 12px;
    background: rgba(0, 255, 0, 0.2);
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tagged-user-chip .remove {
    cursor: pointer;
    font-weight: bold;
}

.promote-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00FF00, #00FF00);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.4);
    transition: all 0.2s ease;
}

.promote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 0, 0.5);
}

.promote-btn:active {
    transform: translateY(0);
}

/* ===== TRENDING TOPICS WIDGET ===== */

.trending-widget {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 18px;
    padding: 20px;
}

.trending-header {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trending-item:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateX(4px);
}

.trending-rank {
    font-size: 24px;
}

.trending-info {
    flex: 1;
}

.trending-topic {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.trending-count {
    font-size: 13px;
    color: #666;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .friends-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .friend-avatar {
        width: 60px;
        height: 60px;
    }
    
    .promote-content {
        width: 95%;
        padding: 20px;
    }
    
    .promote-audience-options {
        grid-template-columns: 1fr;
    }
}
