/* ==============================================
   SOCIAL PAGE STYLES
   ============================================== */

/* Loading State */
.social-loading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 3rem 2rem;
    background-color: var(--bg-color, #ffffff);
}

.social-loading-spinner {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border: 5px solid rgba(0, 180, 255, 0.2);
    border-top-color: var(--primary-color, #00b4ff);
    border-radius: 50%;
    animation: social-spin 0.8s linear infinite;
}

@keyframes social-spin {
    to { transform: rotate(360deg); }
}

.social-loading-text {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

/* Page Layout */
.page-social {
    min-height: 100vh;
    background-color: var(--bg-color, #f8fafc);
}

.social-content {
    width: 100%;
    margin: 0;
}

/* ==============================================
   SOCIAL HEADER SECTION
   ============================================== */

.social-header-section {
    padding: 8rem 0 2rem 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    width: 100%;
    margin: 0;
}

.social-header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-header-content {
    text-align: center;
}

.social-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.social-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.social-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.social-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================================
   SOCIAL CONTROLS SECTION
   ============================================== */

.social-controls-section {
    padding: 1.5rem 0;
    background: var(--bg-color, #ffffff);
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.social-controls-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-feed-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 16px;
}

.social-feed-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-feed-tab:hover {
    background: white;
    color: #0f172a;
}

.social-feed-tab.active {
    background: white;
    color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-feed-tab i {
    font-size: 1.1rem;
}

/* ==============================================
   SOCIAL FEED SECTION
   ============================================== */

.social-feed-section {
    padding: 2rem 0 4rem 0;
}

.social-feed-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Feed Loading */
.social-feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.social-feed-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: social-spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

.social-feed-spinner.small {
    width: 24px;
    height: 24px;
    border-width: 3px;
    margin-bottom: 0;
}

.social-feed-loading-text {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* Feed Empty State */
.social-feed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.social-feed-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.social-feed-empty-icon i {
    font-size: 2.5rem;
    color: #8b5cf6;
}

.social-feed-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem 0;
}

.social-feed-empty-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.social-feed-empty-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-feed-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.social-feed-empty-btn.primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.social-feed-empty-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Feed Posts */
.social-feed-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-feed-post {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-feed-post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.social-feed-post.highlighted {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.05));
    border: 2px solid #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4); }
}

/* Loading More */
.social-feed-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

/* End of Feed */
.social-feed-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    margin-top: 1rem;
}

.social-feed-end-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.social-feed-end-text {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==============================================
   DARK MODE SUPPORT
   ============================================== */

body.dark-mode .social-loading {
    background-color: #0f172a;
}

body.dark-mode .page-social {
    background-color: #0f172a;
}

body.dark-mode .social-header-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
}

body.dark-mode .social-title {
    color: #f1f5f9;
}

body.dark-mode .social-subtitle {
    color: #94a3b8;
}

body.dark-mode .social-controls-section {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .social-feed-tabs {
    background: #1e293b;
}

body.dark-mode .social-feed-tab {
    color: #94a3b8;
}

body.dark-mode .social-feed-tab:hover {
    background: #334155;
    color: #f1f5f9;
}

body.dark-mode .social-feed-tab.active {
    background: #334155;
    color: #a78bfa;
}

body.dark-mode .social-feed-post {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .social-feed-post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .social-feed-post.highlighted {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
    border-color: #a78bfa;
}

body.dark-mode .social-feed-empty-title {
    color: #f1f5f9;
}

body.dark-mode .social-feed-empty-description {
    color: #94a3b8;
}

body.dark-mode .social-feed-empty-icon {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.08));
    border-color: rgba(167, 139, 250, 0.3);
}

body.dark-mode .social-feed-empty-icon i {
    color: #a78bfa;
}

body.dark-mode .social-feed-empty-btn.primary {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
}

body.dark-mode .social-feed-end-text {
    color: #64748b;
}

body.dark-mode .social-feed-end-line {
    background: linear-gradient(to right, transparent, #334155, transparent);
}

/* ==============================================
   RESPONSIVE STYLES
   ============================================== */

@media (max-width: 768px) {
    .social-header-section {
        padding: 6rem 0 1.5rem 0;
    }

    .social-header-container {
        padding: 0 1rem;
    }

    .social-title-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-title {
        font-size: 2rem;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .social-controls-section {
        top: 60px;
        padding: 1rem 0;
    }

    .social-controls-container {
        padding: 0 1rem;
    }

    .social-feed-container {
        padding: 0 0.75rem;
    }

    .social-feed-tabs {
        padding: 0.35rem;
    }

    .social-feed-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .social-feed-section {
        padding: 1.5rem 0 calc(80px + 2rem) 0;
    }

    .social-feed-post {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .social-header-section {
        padding: 5.5rem 0 1rem 0;
    }

    .social-title {
        font-size: 1.75rem;
    }

    .social-subtitle {
        font-size: 0.95rem;
    }

    .social-feed-tabs {
        gap: 0.25rem;
    }

    .social-feed-tab {
        padding: 0.5rem 0.75rem;
    }

    .social-feed-post {
        border-radius: 8px;
    }
}
