/* ===== MODERN POSTS PAGE STYLES ===== */

:root {
  --primary: #153aa1;
  --primary-light: #4a90e2;
  --primary-dark: #0d2166;
  --accent: #ff4081;
  --accent-light: #ff6b9d;
  --danger: #ff5252;
  --success: #4caf50;
  --bg-light: #f5f7ff;
  --bg-lighter: #f0f4ff;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --border: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

/* ===== HERO SECTION ===== */
.posts-hero {
  background: linear-gradient(135deg, rgba(21, 58, 161, 0.95) 0%, rgba(74, 144, 226, 0.9) 50%, rgba(13, 33, 102, 0.95) 100%), 
              url('../../assets/img/ataturk.jpg') center 70% / cover no-repeat;
  /* background-attachment: fixed kaldırıldı - mobil scroll performansı için */
  color: white;
  padding: 6rem 0;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.posts-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.posts-hero h1 {
  font-size: 3.5rem;
  margin: 0 0 1rem 0;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.posts-hero p {
  font-size: 1.3rem;
  margin: 0;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.posts-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(245, 247, 255, 0.5));
  pointer-events: none;
}

/* ===== POSTS CONTAINER & LAYOUT ===== */
.posts-container {
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
  padding: 5rem 2rem;
  min-height: 70vh;
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 1600px !important;
  margin: 0 auto !important;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.posts-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.posts-sidebar {
  position: sticky;
  top: 120px;
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  height: fit-content;
  border: 1px solid rgba(21, 58, 161, 0.08);
}

.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  font-size: 1.15rem;
  margin: 0 0 1.25rem 0;
  color: var(--primary);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-section h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2rem;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 3px;
}

/* Categories */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-btn {
  background: white;
  border: 2px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(21, 58, 161, 0.1);
  touch-action: manipulation;
  user-select: none;
}

.category-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.category-btn:hover {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.category-btn:hover::before {
  transform: scaleY(1);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(21, 58, 161, 0.3);
}

.category-count {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 600;
}

.category-btn.active .category-count {
  opacity: 0.95;
}

/* Search Input */
.search-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--text-primary);
  font-family: 'Source Sans 3', sans-serif;
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
  background: linear-gradient(to bottom, white, rgba(245, 247, 255, 0.5));
}

/* ===== POSTS MAIN ===== */
.posts-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ===== FEATURED POST ===== */
.featured-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: row;
  gap: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  height: 240px;
}

/* Fotoğrafsız featured post */
.featured-post.no-image {
  height: auto;
  min-height: 200px;
}

.featured-post.no-image .featured-content {
  width: 100%;
  padding: 2.5rem;
}

.featured-post:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.featured-image-container {
  position: relative;
  overflow: hidden;
  width: 380px;
  flex-shrink: 0;
}

.featured-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post:hover .featured-image-container img {
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
}

.featured-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  flex: 1;
}

.featured-category {
  display: inline-block;
  background: linear-gradient(135deg, rgba(21, 58, 161, 0.08) 0%, rgba(74, 144, 226, 0.08) 100%);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.featured-content h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary);
  font-family: 'Merriweather', serif;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.featured-excerpt {
  font-size: 0.9rem;
  display: block;
  overflow: visible;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  max-height: none;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.featured-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.featured-read-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(21, 58, 161, 0.3);
  position: relative;
  overflow: hidden;
}

.featured-read-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.featured-read-btn:hover::before {
  transform: translateX(0);
}

.featured-read-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 58, 161, 0.4);
}

/* ===== POSTS LIST - MASONRY ===== */
.posts-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
}

/* ===== POST CARD - MODERN ===== */
.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(21, 58, 161, 0.1);
  touch-action: manipulation;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}

.post-card:hover::before {
  transform: scaleX(1);
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.08);
}

.post-image {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  height: 280px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-image img {
  transform: scale(1.12) rotate(0.5deg);
}

.post-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(0, 0, 0, 0.1);
}

.image-count-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.post-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.9rem;
}

/* Fotoğrafsız kartlar için özel stiller */
.post-card.no-image .post-body {
  padding: 2rem 1.5rem;
  position: relative;
}

.post-actions-no-image {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.post-actions-no-image .btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-actions-no-image .btn-icon:hover {
  background: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(21, 58, 161, 0.3);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.35rem;
  margin: 0;
  color: var(--primary);
  font-family: 'Merriweather', serif;
  flex: 1;
  line-height: 1.35;
  font-weight: 700;
  transition: color 0.3s ease;
}

.post-card:hover .post-title {
  color: var(--primary-light);
}

.post-category {
  display: inline-block;
  background: linear-gradient(135deg, rgba(21, 58, 161, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(21, 58, 161, 0.15);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.post-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(74, 144, 226, 0.12);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-size: 0.92rem;
  display: block;
  overflow: visible;
  flex-grow: 1;
  transition: color 0.3s ease;
  max-height: none;
}

.post-card:hover .post-excerpt {
  color: var(--text-primary);
}

.post-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    'like comment read'
    'views views views';
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  margin-top: auto;
  overflow: hidden;
  align-items: stretch;
}

.post-actions-row {
  display: contents;
}

.post-actions-row > * {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.post-views-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  width: 100%;
  grid-area: views;
}

.post-like-action {
  grid-area: like;
}

.post-comment-action {
  grid-area: comment;
}

.post-readmore-action {
  grid-area: read;
}

.post-view-action {
  width: 100%;
  justify-self: center;
}

.post-action-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.post-action-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.post-action-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.post-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-item.comment-stat {
  padding: 1rem 0.75rem;
  background: rgba(74, 144, 226, 0.08);
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
  min-height: 84px;
  width: 100%;
}

.stat-item.view-stat {
  font-size: 0.8rem;
  opacity: 0.8;
  padding: 0;
}

.post-card:hover .stat-item {
  color: var(--primary-light);
}

.post-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover .post-actions {
  opacity: 1;
}

.post-like-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.95) 100%);
  border: 2px solid rgba(21, 58, 161, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.post-like-btn:hover:not(:disabled) {
  border-color: var(--accent);
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.post-like-btn.liked {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-color: var(--accent);
  color: white;
  animation: heartPulse 0.5s ease;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.4); }
  50% { transform: scale(1.2); }
}

.post-like-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: none;
}

.post-like-btn.liked .post-like-count {
  display: block;
}

/* Alkış Butonu */
.post-clap-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.95) 100%);
  border: 2px solid rgba(21, 58, 161, 0.15);
  border-radius: 24px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
  font-weight: 600;
  -webkit-tap-highlight-color: rgba(21, 58, 161, 0.1);
  touch-action: manipulation;
  user-select: none;
  min-height: 84px;
  z-index: 2;
  position: relative;
  pointer-events: auto;
}

.post-clap-btn:hover:not(:disabled) {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 58, 161, 0.2);
  background: linear-gradient(135deg, rgba(245, 247, 255, 1) 0%, rgba(240, 244, 255, 1) 100%);
}

.post-clap-btn.clapped {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  color: white;
  animation: clapPulse 0.5s ease;
}

@keyframes clapPulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1.05); }
}

.post-clap-count {
  font-size: inherit;
  font-weight: 700;
  min-width: 0;
  text-align: center;
}

.post-clap-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-clap-btn.not-logged-in {
  opacity: 0.6;
  cursor: pointer;
}

.post-clap-btn.not-logged-in:hover {
  opacity: 0.8;
  border-color: var(--primary);
}

.read-more-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  text-transform: none;
  letter-spacing: 0;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
  touch-action: manipulation;
  user-select: none;
  min-height: 84px;
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 58, 161, 0.3);
}

/* ===== FORMS ===== */
.new-post-form-container {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  border: 1px solid rgba(21, 58, 161, 0.08);
  border-top: 4px solid var(--primary);
}

.new-post-form-container h2 {
  margin: 0 0 2rem 0;
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.new-post-form-container h2::before {
  content: '✍️';
  font-size: 1.8rem;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
  background: linear-gradient(to bottom, white, rgba(245, 247, 255, 0.3));
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  font-family: 'Source Sans 3', sans-serif;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
}

.form-actions .btn {
  padding: 0.9rem 1.8rem;
}

/* Image Preview Grid */
#image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  border-radius: 12px;
  border: 2px dashed rgba(21, 58, 161, 0.2);
}

.image-preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.image-preview-item:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-number {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, var(--danger) 0%, #ff3333 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.remove-image-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
}

.add-more-images-btn {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(21, 58, 161, 0.08) 0%, rgba(74, 144, 226, 0.08) 100%);
  border: 2px dashed rgba(21, 58, 161, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 2.5rem;
  color: var(--primary-light);
  padding: 0;
  box-shadow: none;
}

.add-more-images-btn:hover {
  background: linear-gradient(135deg, rgba(21, 58, 161, 0.15) 0%, rgba(74, 144, 226, 0.15) 100%);
  border-color: var(--primary-light);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(21, 58, 161, 0.15);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(21, 58, 161, 0.2);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 58, 161, 0.3);
}

.btn.secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn.secondary:hover {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  transform: translateY(-2px);
}

.btn.full-width {
  width: 100%;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 1400px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
  user-select: none;
  z-index: 10;
}

.modal-close:hover {
  color: #000;
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  transform: rotate(90deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-image-container {
    min-height: 300px;
  }

  .posts-grid {
    grid-template-columns: 250px 1fr;
    gap: 2rem;
  }

  .posts-container {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .posts-hero h1 {
    font-size: 2.5rem;
  }

  .posts-hero p {
    font-size: 1.1rem;
  }

  .posts-container {
    padding: 3rem 1rem;
    overflow-x: hidden;
  }

  .container {
    padding: 0 0.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    overflow-x: hidden;
  }

  .posts-sidebar {
    position: static;
    top: auto;
  }

  .featured-post {
    flex-direction: column;
    height: auto;
  }

  .featured-image-container {
    width: 100%;
    height: 250px;
  }

  .featured-content {
    padding: 2rem;
  }

  .featured-content h2 {
    font-size: 1.6rem;
  }

  .featured-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .posts-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .post-body {
    padding: 1.5rem;
  }

  .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .modal-content {
    padding: 2rem 1rem;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
  }

  .new-post-form-container {
    padding: 1.5rem;
  }

  .post-actions {
    opacity: 1;
    top: 0.75rem;
    right: 0.75rem;
  }

  #image-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 1rem;
  }

  .gallery-item {
    flex: 0 0 180px;
    height: 180px;
  }

  .gallery-slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .post-detail h2 {
    font-size: 1.8rem;
  }

  .post-detail-content {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .posts-hero {
    padding: 3rem 1rem;
  }

  .posts-hero h1 {
    font-size: 1.8rem;
  }

  .posts-hero p {
    font-size: 0.9rem;
  }

  .posts-container {
    padding: 2rem 0.5rem;
    overflow-x: hidden;
  }

  .container {
    padding: 0 0.25rem;
  }

  .posts-sidebar {
    padding: 1.5rem;
  }

  .posts-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-image {
    height: 200px;
  }

  .post-body {
    padding: 1rem;
  }

  .post-card.no-image .post-body {
    padding: 1.5rem 1rem;
  }

  .post-actions-no-image {
    top: 0.75rem;
    right: 0.75rem;
  }

  .post-actions-no-image .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    max-height: 6em;
  }

  .post-actions-row {
    display: contents;
  }

  .post-footer {
    gap: 0.5rem;
  }

  .post-clap-btn,
  .stat-item.comment-stat,
  .read-more-btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
    box-sizing: border-box;
    min-height: 74px;
  }

  .post-clap-btn,
  .stat-item.comment-stat {
    padding: 0.7rem 0.45rem;
    border-radius: 12px;
    font-size: 0.75rem;
  }

  .post-clap-btn {
    gap: 0.3rem;
  }

  .post-clap-count {
    min-width: 0;
    font-size: 0.8rem;
  }

  .post-action-value {
    font-size: 0.84rem;
    gap: 0.25rem;
  }

  .post-action-label {
    font-size: 0.72rem;
  }

  .stat-item.comment-stat {
    line-height: 1.2;
    text-align: center;
  }

  .read-more-btn {
    width: 100%;
    padding: 0.7rem 0.45rem;
    font-size: 0.72rem;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(21, 58, 161, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: normal;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0;
  }

  .post-views-row {
    justify-content: center;
    padding-left: 0;
  }

  .stat-item.view-stat {
    font-size: 0.78rem;
    text-align: center;
  }

  .read-more-btn:active {
    transform: scale(0.98);
  }

  .featured-content {
    padding: 1.5rem;
  }

  .featured-content h2 {
    font-size: 1.3rem;
  }

  .featured-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
  }

  .featured-read-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.85rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }

  .featured-read-btn:active {
    transform: scale(0.98);
  }

  .featured-image-container {
    height: 200px;
  }

  .modal-content {
    padding: 1rem;
    max-width: 100%;
    width: 100%;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .new-post-form-container h2 {
    font-size: 1.3rem;
  }

  #image-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0.75rem;
  }

  .sidebar-section {
    margin-bottom: 1.5rem;
  }

  .category-btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .gallery-item {
    flex: 0 0 150px;
    height: 150px;
  }

  .gallery-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .gallery-slider-container {
    padding: 1rem;
  }

  .gallery-slider-header h3 {
    font-size: 1rem;
  }

  .post-detail h2 {
    font-size: 1.5rem;
  }

  .post-detail-content {
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  .post-detail-meta {
    padding: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .featured-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .post-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ===== UTILITIES ===== */
.no-posts,
.no-comments,
.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-posts,
.no-comments {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  border-radius: 16px;
  border: 2px dashed var(--border);
  font-size: 1.1rem;
  font-weight: 600;
}

.no-posts::before,
.no-comments::before {
  content: '📭';
  display: block;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.loading::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  border: 3px solid var(--border);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  background: linear-gradient(135deg, #ffe5e5 0%, #ffd0d0 100%);
  color: #c33;
  padding: 2rem;
  border-radius: 16px;
  border-left: 4px solid var(--danger);
  font-weight: 600;
  text-align: center;
}

.error::before {
  content: '⚠️';
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ===== IMAGE GALLERY SLIDER ===== */
.gallery-slider-container {
  position: relative;
  margin: 2.5rem 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
}

.gallery-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.gallery-slider-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-counter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

.gallery-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-track::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 10px;
}

.gallery-track::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.gallery-item {
  flex: 0 0 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px white, 0 4px 16px rgba(255, 64, 129, 0.3);
}

.gallery-item .zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 2rem;
}

.gallery-item:hover .zoom-icon {
  opacity: 1;
}

.gallery-nav {
  display: flex;
  gap: 0.75rem;
}

.gallery-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.gallery-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.gallery-btn:active {
  transform: scale(0.95);
}

.gallery-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== POST DETAIL IMPROVEMENTS ===== */
.post-detail {
  margin-bottom: 2rem;
}

.post-detail h2 {
  font-size: 2.2rem;
  margin: 0 0 1.5rem 0;
  color: var(--primary);
  font-family: 'Merriweather', serif;
  line-height: 1.3;
  font-weight: 700;
}

.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.post-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.post-detail-content {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.9;
  padding: 2rem 0;
}

.post-detail-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.post-detail-engagement {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.btn-like:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(255, 64, 129, 0.08);
  transform: scale(1.05);
}

.btn-like.liked {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
}

.like-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-like:hover:not(:disabled) .like-icon {
  transform: scale(1.3);
}

.like-count {
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
  margin-top: 3rem;
  border-top: 3px solid var(--border);
  padding-top: 2.5rem;
}

.comments-section h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-form-container {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s ease;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.comment-form .btn {
  align-self: flex-start;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-light);
  position: relative;
  transition: all 0.3s ease;
}

.comment:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.comment-header strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.comment-date {
  font-size: 0.85rem;
  color: #999;
  white-space: nowrap;
}

.comment-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  background: white;
  color: #333;
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  color: #333;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-counter {
    bottom: 10px;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}
