/**
 * MG2025 Theme - Profile Page Styles
 * Layout 2 colonne sidebar sticky + gallery masonry
 * Dark elegant theme
 */

/* ============================================
   LAYOUT PROFILE 2 COLONNE
   ============================================ */

.mg-profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #000000 !important;
  min-height: 100vh;
}

/* ============================================
   SIDEBAR STICKY
   ============================================ */

.mg-profile-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.mg-profile-card {
  background: #1a1a1a;
  padding: 32px;
  border-radius: 0;
  color: #ffffff;
}

/* Avatar */
.mg-avatar-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #333333;
}

.mg-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User Info */
.mg-profile-name {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
  color: #ffffff;
}

.mg-profile-role {
  font-size: 16px;
  color: #999999;
  text-align: center;
  margin: 0 0 16px 0;
}

.mg-profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #999999;
  margin: 0 0 16px 0;
}

.mg-profile-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 24px 0;
  text-align: center;
}

/* Action Buttons */
.mg-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease-out;
  text-decoration: none;
}

.mg-btn-primary {
  background: #ffffff;
  color: #0a0a0a;
}

.mg-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.mg-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #333333;
}

.mg-btn-secondary:hover {
  background: #2a2a2a;
}

/* Stats Grid */
.mg-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.mg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mg-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.mg-stat-label {
  font-size: 12px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tags Pills */
.mg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mg-tag-pill {
  padding: 6px 12px;
  background: #2a2a2a;
  color: #ffffff;
  font-size: 12px;
  border-radius: 16px;
  border: 1px solid #333333;
}

/* Joined Date */
.mg-joined {
  font-size: 13px;
  color: #999999;
  text-align: center;
  margin: 0;
}

/* Icon Helper */
.mg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

 
.mg-profile-main {
  position: relative;
  min-height: 100vh;
  background-color: #000000 !important;
}

/* Tabs Sticky */
.mg-tabs-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a0a0a;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #333333;
}

.mg-tabs {
  display: flex;
  gap: 24px;
}

.mg-tab {
  padding: 12px 0;
  background: transparent;
  border: none;
  color: #999999;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 160ms ease-out;
}

.mg-tab:hover {
  color: #ffffff;
}

.mg-tab.active {
  color: #ffffff;
}

.mg-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}

.mg-tab:focus {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* ============================================
   PROFILE GALLERY (usa .mg2025-photo-gallery)
   ============================================ */

.mg-profile-gallery {
  /* Eredita tutti gli stili da mg2025_images.css */
  /* Già configurato: masonry, zero gap, overlay hover */
}

/* ============================================
   LOADER (infinite scroll)
   ============================================ */

.mg-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  color: #999999;
}

.mg-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333333;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: mg-spin 1s linear infinite;
}

@keyframes mg-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Desktop Large (≥1440px) - 6 colonne gallery già gestite */
@media (min-width: 1440px) {
  .mg-profile-layout {
    grid-template-columns: 340px 1fr;
  }
}

/* Desktop Medium (1200-1439px) - 5 colonne */
@media (min-width: 1200px) and (max-width: 1439px) {
  .mg-profile-layout {
    grid-template-columns: 320px 1fr;
  }
}

/* Desktop Small (992-1199px) - 4 colonne */
@media (min-width: 992px) and (max-width: 1199px) {
  .mg-profile-layout {
    grid-template-columns: 300px 1fr;
    gap: 32px;
  }
}

/* Tablet (768-991px) - 3 colonne, sidebar sopra */
@media (min-width: 768px) and (max-width: 991px) {
  .mg-profile-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .mg-profile-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
}

/* Mobile (<768px) - 2 colonne, sidebar collassata */
@media (max-width: 767px) {
  .mg-profile-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 12px;
  }
  
  .mg-profile-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
  
  .mg-profile-card {
    padding: 24px;
  }
  
  .mg-tabs {
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .mg-tab {
    white-space: nowrap;
    font-size: 14px;
  }
  
  .mg-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


















