:root {
  --color-primary: #e1306c;
  --color-primary-dark: #c13584;
  --color-secondary: #405de6;
  --color-background: #fafafa;
  --color-surface: #ffffff;
  --color-text: #262626;
  --color-text-secondary: #8e8e8e;
  --color-border: #dbdbdb;
  --color-removed: #ed4956;
  --color-removed-bg: #ffebee;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --max-width: 935px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ==================== Landing Page ==================== */
.landing-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  padding: 1rem 0;
}

.landing-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.landing-header .logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.hero {
  text-align: center;
  color: white;
  margin-bottom: 4rem;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  color: white;
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature p {
  opacity: 0.85;
  font-size: 0.95rem;
}

.landing-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  font-size: 0.875rem;
}

.landing-footer .disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* ==================== Site Header ==================== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.logo-link:hover {
  color: var(--color-primary);
}

/* ==================== Profile Page ==================== */
.profile-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.profile-header {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.profile-pic-container {
  flex-shrink: 0;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
}

.profile-pic-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-info {
  flex: 1;
}

.profile-username-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.profile-username {
  font-size: 1.75rem;
  font-weight: 300;
}

.ig-link {
  font-size: 0.875rem;
  color: var(--color-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-secondary);
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.ig-link:hover {
  background: var(--color-secondary);
  color: white;
}

.profile-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 1.25rem;
}

.stat {
  display: flex;
  gap: 0.35rem;
}

.stat-value {
  font-weight: 600;
}

.stat-label {
  color: var(--color-text-secondary);
}

.profile-fullname {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-bio {
  white-space: pre-wrap;
  font-size: 0.95rem;
}

/* ==================== Archive Info ==================== */
.archive-info {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.archive-stats {
  display: flex;
  gap: 1.5rem;
}

.archive-stat.removed {
  color: var(--color-removed);
}

.last-updated {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ==================== Posts Grid ==================== */
.posts-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.removed-badge {
  background: var(--color-removed);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.post-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-border);
  text-decoration: none;
}

.post-thumbnail {
  width: 100%;
  height: 100%;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.carousel-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px;
  border-radius: 4px;
}

.post-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: white;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

.post-card:hover .post-hover {
  opacity: 1;
}

/* Removed posts */
.post-card.removed {
  opacity: 0.8;
}

.removed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(237, 73, 86, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.post-card.removed .post-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  font-size: 0.75rem;
}

/* ==================== Post Page ==================== */
.post-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--color-text);
}

.removed-banner {
  background: var(--color-removed-bg);
  border: 1px solid var(--color-removed);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.removed-icon {
  font-size: 1.5rem;
}

.removed-text strong {
  display: block;
  color: var(--color-removed);
}

.removed-text span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.post-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-images {
  background: black;
}

.single-image img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}

/* Carousel */
.image-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  flex: 0 0 100%;
}

.carousel-slide img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: white;
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: white;
}

/* Post details */
.post-details {
  padding: 1.5rem;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.author-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-username {
  font-weight: 600;
}

.post-time {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.post-caption {
  margin-bottom: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-stats {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.post-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
}

.post-actions {
  margin-bottom: 1.5rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-secondary);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #3651d4;
}

.post-meta {
  background: var(--color-background);
  border-radius: var(--border-radius);
  padding: 1rem;
  font-size: 0.875rem;
}

.post-meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.post-meta dt {
  color: var(--color-text-secondary);
}

.post-meta dd {
  font-family: monospace;
}

/* ==================== Footer ==================== */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic,
  .profile-pic-placeholder {
    width: 100px;
    height: 100px;
  }

  .profile-username-row {
    justify-content: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .archive-info {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}
