/* Theme Configuration - Velvet */
/* Minimalist iOS-style theme with proper glassmorphism */

/* iPhone Device Frame */
.iphone-container {
  width: 393px;
  height: 852px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

/* iOS Status Bar */
.ios-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 47px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: var(--z-sticky);
  user-select: none;
  border-bottom: 0.5px solid var(--border-light);
}

.ios-status-bar .status-time {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.ios-status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* Dynamic Island (for newer iPhones) */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  background: #000;
  border-radius: 19px;
  z-index: calc(var(--z-sticky) + 1);
}

/* Navigation Header */
.nav-header {
  position: absolute;
  top: 47px;
  left: 0;
  right: 0;
  height: 44px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: var(--z-sticky);
}

.nav-header .logo {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  letter-spacing: -0.8px;
}

.nav-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-header .nav-actions svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 1.5;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-header .nav-actions svg:hover {
  opacity: 0.6;
}

/* Content Area */
.content-area {
  position: absolute;
  top: 91px; /* Status bar (47px) + Nav header (44px) */
  left: 0;
  right: 0;
  bottom: 83px; /* Tab bar (49px) + Safe area (34px) */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.content-area::-webkit-scrollbar {
  display: none;
}

.content-area.full-screen {
  top: 0;
  bottom: 0;
  z-index: calc(var(--z-modal) + 1);
}

/* Unified Tab Bar - Instagram Style with 5 Icons */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 83px; /* 49px + 34px safe area */
  padding-bottom: 34px; /* iPhone home indicator area */
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 0.5px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: var(--z-sticky);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 49px;
  color: var(--gray);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.3px;
  position: relative;
}

.tab-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--gray);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: 3px;
  transition: all var(--transition-fast);
}

.tab-item.active {
  color: var(--black);
}

.tab-item.active svg {
  stroke: var(--black);
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 6px rgba(10, 10, 10, 0.15));
}

.tab-item:active {
  transform: scale(0.9);
}

.tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Create Button - Special Style */
.tab-item.create-btn svg {
  stroke: var(--black);
  stroke-width: 2.5;
  width: 22px;
  height: 22px;
}

.tab-item.create-btn .create-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--black);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.tab-item.create-btn:active .create-box {
  background: var(--black);
}

.tab-item.create-btn:active svg {
  stroke: var(--white);
}

/* Content Cards */
.content-card {
  background: var(--bg-primary);
  border-bottom: 0.5px solid var(--border-light);
  animation: fadeIn 0.5s ease-out;
}

.content-card:last-child {
  border-bottom: none;
}

/* Post Header */
.post-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.post-avatar.has-story {
  padding: 2px;
  background: linear-gradient(45deg, var(--red), var(--gold));
  background-clip: padding-box;
}

.post-avatar.has-story img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
}

.post-header-info {
  flex: 1;
  margin-left: 12px;
}

.post-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-badge {
  color: var(--red);
  font-size: 12px;
}

.post-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Post Actions */
.post-actions {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 16px;
}

.post-actions svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 1.5;
  cursor: pointer;
  transition: all var(--transition-fast);
  fill: none;
}

.post-actions svg:hover {
  opacity: 0.6;
}

.post-actions svg:active {
  transform: scale(0.9);
}

.post-actions svg.liked {
  fill: var(--red);
  stroke: var(--red);
  animation: heartBeat 0.6s ease-in-out;
}

.post-actions .bookmark-btn {
  margin-left: auto;
}

/* Stories Bar - Removed as not needed for adult content */

/* Explore Grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}

.explore-item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-lighter);
}

.explore-item img,
.explore-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.explore-item:hover img,
.explore-item:hover video {
  transform: scale(1.05);
}

.explore-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.explore-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.explore-item:hover .explore-overlay {
  opacity: 1;
}

.explore-info {
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.explore-info .stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.explore-info svg {
  width: 14px;
  height: 14px;
}

/* Content Type Badge */
.content-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--black-80);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.content-type-badge.vip {
  background: linear-gradient(135deg, var(--gold), #FCD34D);
  color: var(--black);
}

.content-type-badge svg {
  width: 12px;
  height: 12px;
}

/* Profile Stats */
.profile-header {
  padding: 16px;
  background: var(--bg-primary);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.profile-stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item {
  cursor: pointer;
}

.stat-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Modal/Bottom Sheet Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  padding: 16px;
  border-bottom: 0.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Create Modal - Bottom Sheet Style */
.create-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 16px 40px;
  z-index: var(--z-modal);
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.create-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.create-option {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.create-option:hover {
  background: var(--black-5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.create-option:active {
  transform: scale(0.98);
}

.create-option svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  stroke: var(--black);
}

.create-option-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.create-option-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Loading States */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-lighter);
  border-top-color: var(--black);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

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

/* Reels/Shorts Full Screen */
.reels-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--black);
  overflow: hidden;
}

.reels-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reels-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.reels-actions {
  position: absolute;
  right: 12px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.reels-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.reels-action svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: all var(--transition-fast);
}

.reels-action:active svg {
  transform: scale(0.9);
}

.reels-action span {
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.reels-info {
  position: absolute;
  left: 12px;
  bottom: 100px;
  color: var(--white);
  max-width: 75%;
}

.reels-username {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.reels-description {
  font-size: 13px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}