/* ===== KuyaPads User Profile CSS ===== */
/* Facebook-style profile page with dashboard button */

.kp-profile {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  color: #f0f0f0;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== PROFILE HEADER SECTION ===== */
.profile-header-section {
  background: rgba(30, 30, 30, 0.95);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-cover-photo {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
}

.edit-cover-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #333;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.edit-cover-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-info-bar {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 2rem 2rem 2rem;
  margin-top: -80px;
  position: relative;
}

.profile-avatar-section {
  position: relative;
}

.profile-avatar-container {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.profile-avatar-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #ffffff;
}

.avatar-status.online {
  background: #4CAF50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
}

.edit-avatar-btn {
  position: absolute;
  bottom: 5px;
  right: 25px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.edit-avatar-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.profile-main-info {
  flex: 1;
  padding-bottom: 1rem;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-subtitle {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin: 0 0 1rem 0;
}

.profile-stats-inline {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.stat-item {
  color: #e0e0e0;
  font-size: 1rem;
}

.stat-item strong {
  color: #ffffff;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
}

.dashboard-btn {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.dashboard-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.edit-profile-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-profile-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.share-profile-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-profile-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ===== PROFILE NAVIGATION TABS ===== */
.profile-nav-section {
  background: rgba(40, 40, 40, 0.9);
  border-radius: 15px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-nav-tabs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.nav-tab {
  background: none;
  border: none;
  color: #e0e0e0;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 600;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-tab.active {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* ===== PROFILE CONTENT SECTION ===== */
.profile-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.profile-main-content {
  background: rgba(40, 40, 40, 0.9);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== POSTS TAB ===== */
.create-post-card {
  background: rgba(50, 50, 50, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.post-input-section {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.post-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 1rem;
  resize: vertical;
  min-height: 50px;
}

.post-input::placeholder {
  color: #cccccc;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-action-btn {
  background: none;
  border: none;
  color: #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.post-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.post-submit-btn {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.post-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.post-card {
  background: rgba(50, 50, 50, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.post-author-info h4 {
  color: #ffffff;
  margin: 0;
  font-weight: 600;
}

.post-time {
  color: #cccccc;
  font-size: 0.9rem;
}

.post-content p {
  color: #f0f0f0;
  line-height: 1.6;
  margin: 0;
}

.post-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-likes,
.post-comments,
.post-shares {
  color: #e0e0e0;
  font-size: 0.9rem;
}

/* ===== ABOUT TAB ===== */
.about-card {
  background: rgba(50, 50, 50, 0.8);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-card p {
  color: #e0e0e0;
  line-height: 1.6;
  margin: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  color: #e0e0e0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item strong {
  color: #ffffff;
}

/* ===== ACHIEVEMENTS TAB ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  background: rgba(50, 50, 50, 0.8);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.achievement-card h4 {
  color: #ffffff;
  margin: 0.5rem 0;
}

.achievement-card p {
  color: #e0e0e0;
  font-size: 0.9rem;
  margin: 0;
}

/* ===== EARNINGS TAB ===== */
.earnings-overview {
  background: rgba(50, 50, 50, 0.8);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.earnings-overview h3 {
  color: #ffffff;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.earnings-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.earning-stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #e0e0e0;
  font-size: 0.9rem;
}

.view-dashboard-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-dashboard-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* ===== GALLERY TAB ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  padding-bottom: 100%;
  background: rgba(50, 50, 50, 0.8);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PROFILE SIDEBAR ===== */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: rgba(40, 40, 40, 0.9);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-card h3 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.friend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.friend-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.friend-item span {
  color: #e0e0e0;
  font-size: 0.8rem;
}

.quick-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.quick-stat i {
  color: #4CAF50;
  width: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .profile-container {
    padding: 1rem;
  }
  
  .profile-info-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-actions {
    justify-content: center;
  }
  
  .profile-content {
    grid-template-columns: 1fr;
  }
  
  .profile-nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .earnings-stats {
    grid-template-columns: 1fr;
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .friends-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
