/* Friends Page Specific Styles */

/* Tabs Navigation */
.friends-tabs {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 0, 255, 0.3);
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 255, 0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    border-color: rgba(255, 0, 255, 0.6);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(90deg, #ff00ff 0%, #00ff88 100%);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0055;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Tab Content */
.friends-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-badge {
    background: rgba(255, 0, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Friend Card */
.friend-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.friend-card:hover {
    border-color: rgba(255, 0, 255, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.friend-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.friend-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff00ff, #00ff88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid rgba(255, 0, 255, 0.5);
}

.friend-info h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 4px;
}

.friend-username {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.friend-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: rgba(255, 0, 255, 0.1);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.compatibility-score {
    text-align: center;
    padding: 8px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
}

.compatibility-score .score {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff00ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.friend-actions {
    display: flex;
    gap: 10px;
}

.friend-actions button {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background: rgba(255, 0, 255, 0.3);
    color: #fff;
}

.btn-view:hover {
    background: rgba(255, 0, 255, 0.5);
}

.btn-compare {
    background: rgba(0, 255, 136, 0.3);
    color: #fff;
}

.btn-compare:hover {
    background: rgba(0, 255, 136, 0.5);
}

.btn-accept {
    background: #00ff88;
    color: #000;
}

.btn-accept:hover {
    background: #00dd77;
}

.btn-reject {
    background: rgba(255, 0, 85, 0.3);
    color: #fff;
}

.btn-reject:hover {
    background: rgba(255, 0, 85, 0.5);
}

.btn-remove {
    background: rgba(255, 0, 85, 0.3);
    color: #fff;
}

.btn-remove:hover {
    background: rgba(255, 0, 85, 0.5);
}

.btn-add-friend {
    background: linear-gradient(90deg, #ff00ff, #00ff88);
    color: #fff;
}

.btn-add-friend:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.btn-add-friend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Request Status */
.request-status {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.status-friends {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
    border-color: rgba(255, 0, 255, 0.6);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: rgba(255, 0, 255, 0.4);
    transform: translateX(5px);
}

.activity-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff00ff, #00ff88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.activity-user {
    font-weight: 600;
    color: #00ff88;
}

.activity-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.activity-action {
    color: #fff;
    margin-bottom: 8px;
}

.activity-movie {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 0, 255, 0.1);
    border-radius: 8px;
}

.activity-movie-thumb {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.activity-movie-info {
    flex: 1;
}

.activity-movie-title {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.activity-movie-year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Profile Modal */
.profile-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 136, 0.2));
    border-radius: 12px;
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff00ff, #00ff88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 3px solid rgba(255, 0, 255, 0.5);
}

.profile-details h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 8px;
}

.profile-bio {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 0, 255, 0.3);
}

.profile-tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.profile-tab-btn.active {
    color: #fff;
    border-bottom-color: #00ff88;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

.movie-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.movie-thumb-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-thumb-card:hover {
    transform: scale(1.05);
}

.movie-thumb-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 0, 255, 0.3);
}

.movie-rank-small {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #00ff88;
}

/* Comparison Modal */
.comparison-modal-content {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.comparison-header {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

.comparison-header h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 15px;
}

.comparison-score-display {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 136, 0.3));
    border-radius: 50px;
    border: 2px solid rgba(255, 0, 255, 0.5);
}

.comparison-score-display .score {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff00ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-section {
    margin-bottom: 40px;
}

.comparison-section h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* Requests Section */
.requests-section {
    margin-bottom: 40px;
}

.requests-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }

    .friends-tabs {
        flex-wrap: wrap;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-stats {
        grid-template-columns: 1fr;
    }

    .movie-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
