/* ==========================================================================
   My Photos Page Styles - Modern Firetalk Theme
   ========================================================================== */

.photos-container {
  max-width: 920px;
  width: 100%;
  margin: 32px auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header Row
   -------------------------------------------------------------------------- */
.photos-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.photos-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.camera-title-icon {
  color: var(--primary-color);
}

.photos-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.4px;
}

.btn-back-profile {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back-profile:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Photos Card Frame
   -------------------------------------------------------------------------- */
.photos-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

/* Hero Showcase Banner */
.photos-hero-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(249, 115, 22, 0.08) 50%, rgba(14, 165, 233, 0.08) 100%), var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 38px 20px 34px;
  text-align: center;
  position: relative;
}

.hero-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.hero-avatar-wrapper {
  width: 164px;
  height: 164px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-xl);
  background: var(--bg-surface-elevated);
  overflow: hidden;
  position: relative;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Section */
.photos-gallery-section {
  padding: 38px 28px 36px;
}

.gallery-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Add Photos Tile */
.tile-add {
  width: 115px;
  height: 115px;
  border-radius: var(--radius-lg);
  background: var(--primary-color);
  background-image: var(--flame-gradient);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.tile-add:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.add-plus-icon {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 4px;
}

.add-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Photo Thumbnail Tile */
.tile-photo {
  width: 115px;
  height: 115px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-photo:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.tile-photo.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-user-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Guidelines Footer */
.photos-guidelines {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.photos-guidelines a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.photos-guidelines a:hover {
  text-decoration: underline;
}

.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99999;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .photos-container {
    padding: 0 12px;
    margin: 16px auto 36px;
  }

  .gallery-grid {
    gap: 12px;
  }

  .tile-add, .tile-photo {
    width: 95px;
    height: 95px;
  }
}
