/* Profile Page - Modern Design */

/* Override body styles */
body {
    overflow-y: auto !important;
    max-height: none !important;
    background: linear-gradient(135deg, #454343 0%, #000000 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

.profile-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 6rem 0 4rem 0;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Banner */
.profile-banner {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c3a 50%, #ffa366 100%);
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.profile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

/* Profile Header */
.profile-header {
    background: var(--card-bg);
    border-radius: 0 0 20px 20px;
    padding: 0 2.5rem 2.5rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

.profile-avatar-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -70px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 6px solid var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.btn-edit-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-edit-profile i {
    width: 18px;
    height: 18px;
}

/* Profile Info */
.profile-info {
    margin-top: 1rem;
}

.profile-username {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.profile-handle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item i {
    width: 18px;
    height: 18px;
}

.meta-item.status-indicator .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.meta-item.status-indicator .status-badge.online {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.meta-item.status-indicator .status-badge i {
    width: 10px;
    height: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Profile Bio */
.profile-bio {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.profile-bio p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Tab Navigation */
.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.profile-tabs .tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.profile-tabs .tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.profile-tabs .tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.profile-tabs .tab-btn i {
    width: 20px;
    height: 20px;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.overview-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.15);
    transform: translateY(-4px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 140, 58, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-badge i {
    width: 12px;
    height: 12px;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-wrapper {
        padding: 5rem 0 3rem 0;
    }

    .profile-container {
        padding: 0 1rem;
    }

    .profile-banner {
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .profile-header {
        padding: 0 1.5rem 1.5rem 1.5rem;
        border-radius: 0 0 12px 12px;
    }

    .profile-avatar-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: -50px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .btn-edit-profile {
        width: 100%;
        justify-content: center;
    }

    .profile-username {
        font-size: 1.75rem;
    }

    .profile-handle {
        font-size: 1rem;
    }

    .profile-stats {
        gap: 2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .profile-tabs .tab-btn span {
        display: none;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }
}
