/**
 * Connections Page Styles
 *
 * Styles for the user connections page displaying followers and following
 * in a tabbed layout with user cards.
 *
 * Note: This file depends on profiles.css which provides the shared
 * .vh360-profile-page and .vh360-profile-content styles.
 *
 * @package Videohub360_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   Connections Header (within profile content box)
   ========================================================================== */

.vh360-connections-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.vh360-connections-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-color, #1f2937);
}

.vh360-connections-summary {
    font-size: 0.9375rem;
    margin: 0;
    color: var(--text-light, #6b7280);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vh360-connections-separator {
    color: var(--border-color, #d1d5db);
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */

.vh360-connections-tabs {
    background: transparent;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 2rem;
}

.vh360-tabs-nav {
    display: flex;
    gap: 0;
}

.vh360-tab-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light, #6b7280);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.vh360-tab-link:hover {
    color: var(--text-color, #1f2937);
    background: var(--bg-light, #f9fafb);
}

.vh360-tab-link.active {
    color: var(--primary-color, #3b82f6);
    border-bottom-color: var(--primary-color, #3b82f6);
    background: transparent;
}

.vh360-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-light, #f3f4f6);
    color: var(--text-light, #6b7280);
    border-radius: 12px;
}

.vh360-tab-link.active .vh360-tab-count {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color, #3b82f6);
}

/* ==========================================================================
   Tab Content
   ========================================================================== */

.vh360-tab-panel {
    display: none;
}

.vh360-tab-panel.active {
    display: block;
}

/* ==========================================================================
   User Grid
   ========================================================================== */

.vh360-user-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
}

/* User Card Styles */
.vh360-user-card {
    background: var(--bg-color, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.vh360-user-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--primary-color, #3b82f6);
}

.vh360-user-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.vh360-user-card-avatar {
    flex-shrink: 0;
}

.vh360-user-card-avatar a {
    display: block;
}

.vh360-user-avatar-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #e5e7eb);
    transition: all 0.3s ease;
}

.vh360-user-card:hover .vh360-user-avatar-image {
    border-color: var(--primary-color, #3b82f6);
}

.vh360-user-card-body {
    flex: 1;
    width: 100%;
}

.vh360-user-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.vh360-user-card-name a {
    color: var(--text-color, #1f2937);
    text-decoration: none;
    transition: color 0.3s ease;
}

.vh360-user-card-name a:hover {
    color: var(--primary-color, #3b82f6);
}

.vh360-user-card-username {
    font-size: 0.875rem;
    color: var(--text-light, #6b7280);
    margin: 0 0 0.5rem;
}

.vh360-user-card-bio {
    font-size: 0.875rem;
    color: var(--text-color, #4b5563);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vh360-user-card-actions {
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.vh360-user-card-follow-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius, 6px);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.vh360-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
}

.vh360-empty-state-icon {
    margin-bottom: 1.5rem;
    color: var(--text-light, #9ca3af);
    opacity: 0.5;
}

.vh360-empty-state-icon svg {
    width: 64px;
    height: 64px;
}

.vh360-empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color, #1f2937);
    margin: 0 0 0.5rem;
}

.vh360-empty-state-message {
    font-size: 1rem;
    color: var(--text-light, #6b7280);
    margin: 0;
    max-width: 400px;
}

/* ==========================================================================
   Error Message
   ========================================================================== */

.vh360-error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
}

.vh360-error-message h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color, #1f2937);
    margin: 0 0 1rem;
}

.vh360-error-message p {
    font-size: 1.125rem;
    color: var(--text-light, #6b7280);
    margin: 0 0 2rem;
    max-width: 500px;
}

/* ==========================================================================
   Profile Stats Link Styles
   ========================================================================== */

.vh360-profile-stat--link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vh360-profile-stat--link:hover {
    color: var(--primary-color, #3b82f6);
    transform: translateY(-2px);
}

.vh360-profile-stat--link .vh360-profile-stat-value,
.vh360-profile-stat--link .vh360-profile-stat-label {
    transition: all 0.3s ease;
}

.vh360-profile-stat--link:hover .vh360-profile-stat-value {
    color: var(--primary-color, #3b82f6);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .vh360-user-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .vh360-connections-title {
        font-size: 1.25rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .vh360-user-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vh360-connections-header {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .vh360-connections-title {
        font-size: 1.125rem;
    }
    
    .vh360-connections-summary {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .vh360-tab-link {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .vh360-empty-state,
    .vh360-error-message {
        padding: 3rem 1rem;
        min-height: 300px;
    }
    
    .vh360-empty-state-title {
        font-size: 1.25rem;
    }
    
    .vh360-empty-state-message {
        font-size: 0.9375rem;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .vh360-tab-link {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .vh360-tab-count {
        min-width: 1.25rem;
        height: 1.25rem;
        font-size: 0.6875rem;
    }
}
