/* ================================================
   WallRank — wallpaper.css
   Single wallpaper page styles
   ================================================ */

/* ================================================
   BREADCRUMB
   ================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  color: var(--border-dark);
}

.breadcrumb__current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ================================================
   WALLPAPER VIEWER
   ================================================ */

.wp-viewer {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border: 0.5px solid var(--border);
  cursor: zoom-in;
}

.wp-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wp-viewer:hover img {
  transform: scale(1.02);
}

.wp-viewer__controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}

.wp-viewer:hover .wp-viewer__controls {
  opacity: 1;
}

.wp-viewer__btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-main);
}

.wp-viewer__btn:hover {
  background: rgba(255,255,255,0.25);
}

.wp-viewer__btn svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
}

/* ================================================
   WALLPAPER INFO
   ================================================ */

.wp-info {
  margin-bottom: 24px;
}

.wp-info__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.wp-info__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.wp-info__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ================================================
   DOWNLOAD SECTION
   ================================================ */

.dl-section {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.dl-section__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.dl-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.dl-option {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: var(--font-main);
}

.dl-option:hover {
  border-color: var(--accent);
}

.dl-option.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.dl-option__res {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.dl-option__size {
  font-size: 11px;
  color: var(--text-muted);
}

.dl-btn-main {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  font-family: var(--font-main);
}

.dl-btn-main:hover {
  background: var(--accent);
}

.dl-btn-main svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

/* ================================================
   VOTE SECTION
   ================================================ */

.vote-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 24px;
}

.vote-section__label {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.vote-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.vote-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.vote-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ================================================
   SIDEBAR DETAILS
   ================================================ */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.detail-card__lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.detail-card__val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ================================================
   RELATED WALLPAPERS
   ================================================ */

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.related-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--dark-surface);
  position: relative;
  cursor: pointer;
  border: 0.5px solid var(--border);
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity var(--transition);
  opacity: 0.85;
}

.related-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.related-card__name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================
   SHARE SECTION
   ================================================ */

.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.share-row__label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
  font-family: var(--font-main);
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.share-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.copy-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.copy-link input {
  flex: 1;
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  font-family: var(--font-main);
}

.copy-link__btn {
  padding: 7px 14px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-main);
  border: none;
  white-space: nowrap;
}

.copy-link__btn:hover {
  background: var(--accent);
}

/* ================================================
   LIGHTBOX / FULLSCREEN
   ================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background var(--transition);
  font-family: var(--font-main);
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}