/* Modern Social Feed - Pastel Theme */

.ig-container {
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  background: linear-gradient(135deg, #FFF3E0 0%, #FFFEF7 50%, #FFF3E0 100%);
  min-height: 100vh;
}

/* Main Column for Feed + Stories */
.ig-main-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Stories Container - Instagram Style */
.stories-container {
  background: white;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 2px 12px rgba(255, 204, 128, 0.1);
  border: 2px solid rgba(255, 204, 128, 0.1);
  margin-bottom: 8px;
}

.stories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #FFCC80 #FFF3E0;
}

.stories-scroll::-webkit-scrollbar {
  height: 6px;
}

.stories-scroll::-webkit-scrollbar-track {
  background: #FFF3E0;
  border-radius: 3px;
}

.stories-scroll::-webkit-scrollbar-thumb {
  background: #FFCC80;
  border-radius: 3px;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.story-item:hover {
  transform: scale(1.05);
}

.story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  transition: all 0.3s ease;
}

.story-avatar.has-story {
  padding: 3px;
  background: linear-gradient(45deg, #FF6B6B, #FFA500, #FFD700, #4ECDC4, #845EC2);
  animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.story-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.story-add-btn {
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-add-btn:hover {
  background: linear-gradient(135deg, #FFB74D 0%, #FF8A65 100%);
  box-shadow: 0 4px 12px rgba(255, 204, 128, 0.4);
}

.story-name {
  font-size: 12px;
  font-weight: 600;
  color: #4a4a4a;
  max-width: 64px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sidebar - Create Post Area */
.ig-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
  height: fit-content;
}

/* Ultra Modern Create Post Button - Pastel Style */
.btn-post-create {
  width: 100%;
  padding: 20px 24px;
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 204, 128, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-post-create::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.btn-post-create:hover::before {
  left: 100%;
}

.btn-post-create:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 204, 128, 0.4);
  background: linear-gradient(135deg, #FFB74D 0%, #FF8A65 100%);
}

.btn-post-create:active {
  transform: translateY(-1px) scale(0.98);
}

.ig-create-card, .ig-filter-card {
  background: white;
  border: none;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(255, 204, 128, 0.12);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 204, 128, 0.15);
}

.ig-create-card:hover, .ig-filter-card:hover {
  box-shadow: 0 8px 24px rgba(255, 204, 128, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 204, 128, 0.3);
}

/* Textarea for Post Creation */
.ig-textarea {
  width: 100%;
  min-height: 100px;
  padding: 16px;
  border: 2px solid rgba(255, 204, 128, 0.3);
  border-radius: 12px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  resize: vertical;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  background: #fffef7;
}

.ig-textarea:focus {
  outline: none;
  border-color: #FFCC80;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 204, 128, 0.15);
}

.ig-textarea::placeholder {
  color: #9ca3af;
}

/* Media Upload Button */
.ig-media-btn {
  width: 100%;
  padding: 14px;
  border: 2px dashed rgba(255, 204, 128, 0.5);
  border-radius: 12px;
  background: #fffef7;
  color: #FF8F00;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.ig-media-btn:hover {
  background: #FFF3E0;
  border-color: #FFCC80;
  transform: translateY(-1px);
  color: #FF6F00;
}

.ig-media-btn svg {
  stroke-width: 2.5;
}

/* Media Preview */
.media-preview-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.media-preview-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.media-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.media-preview-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  /* backdrop-filter: blur - FPS için kaldırıldı */
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.media-preview-remove:hover {
  background: rgba(239, 68, 68, 0.9);
  transform: rotate(90deg) scale(1.1);
}

/* Tags Display and Input */
.ig-tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ig-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(255,204,128,0.15) 0%, rgba(255,183,77,0.15) 100%);
  color: #FF8F00;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,204,128,0.3);
}

.ig-tag:hover {
  background: linear-gradient(135deg, rgba(255,204,128,0.25) 0%, rgba(255,183,77,0.25) 100%);
  transform: translateY(-1px);
}

.ig-tag-remove {
  cursor: pointer;
  font-weight: 700;
  transition: color 0.2s;
}

.ig-tag-remove:hover {
  color: #ef4444;
}

.ig-tag-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 204, 128, 0.3);
  border-radius: 12px;
  font-size: 14px;
  background: #fffef7;
  transition: all 0.3s ease;
}

.ig-tag-input:focus {
  outline: none;
  border-color: #FFCC80;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 204, 128, 0.15);
}

/* Post Button */
.ig-post-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 204, 128, 0.3);
}

.ig-post-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 204, 128, 0.4);
  background: linear-gradient(135deg, #FFB74D 0%, #FF8A65 100%);
}

.ig-post-btn:active {
  transform: translateY(0);
}

.ig-post-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.ig-post-btn svg {
  stroke-width: 2.5;
}

/* Filter Tags */
.ig-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-tag-filter {
  padding: 8px 16px;
  background: #fffef7;
  border: 2px solid rgba(255, 204, 128, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: #FF8F00;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-tag-filter:hover {
  background: #FFF3E0;
  transform: translateY(-1px);
  border-color: rgba(255, 204, 128, 0.5);
}

.social-tag-filter.active {
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  color: #1a1a1a;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 204, 128, 0.4);
}

/* Main Feed */
.ig-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Instagram Post Card - Modern Design */
.instagram-post {
  background: white;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255, 204, 128, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 204, 128, 0.08);
}

.instagram-post:hover {
  box-shadow: 0 8px 24px rgba(255, 204, 128, 0.18);
  transform: translateY(-4px);
  border-color: rgba(255, 204, 128, 0.2);
}

.ig-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
}

.ig-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(255, 204, 128, 0.3);
  transition: all 0.3s ease;
}

.ig-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 204, 128, 0.4);
}

.ig-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ig-username {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.3px;
}

.ig-time {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

/* Media Container */
.ig-media-container {
  width: 100%;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.ig-media-image, .ig-media-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Actions Bar */
.ig-actions-bar {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
}

.ig-actions-left {
  display: flex;
  gap: 20px;
}

/* Action Buttons */
.ig-action-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
}

.ig-action-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.ig-action-btn:active {
  transform: scale(0.95);
}

.ig-icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.ig-action-btn.liked .ig-icon {
  fill: #ef4444;
  stroke: #ef4444;
  animation: likeAnimation 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes likeAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Post Content */
.ig-likes {
  padding: 0 24px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.ig-caption {
  padding: 0 24px 12px;
  font-size: 15px;
  line-height: 22px;
}

.ig-caption-username {
  font-weight: 700;
  color: #111827;
  margin-right: 8px;
}

.ig-caption-text {
  color: #374151;
}

.ig-tags {
  padding: 0 24px 12px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ig-tag {
  color: #FF8F00;
  cursor: pointer;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(255, 204, 128, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 204, 128, 0.3);
}

.ig-tag:hover {
  background: rgba(255, 204, 128, 0.25);
  transform: translateY(-1px);
}

.ig-view-comments {
  padding: 0 24px 12px;
  background: none;
  border: none;
  font-size: 14px;
  color: #9ca3af;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ig-view-comments:hover {
  color: #FFCC80;
}

.ig-comments-section {
  padding: 0 24px 20px;
  max-height: 300px;
  overflow-y: auto;
}

.ig-comment {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 20px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 12px;
}

.ig-comment-username {
  font-weight: 700;
  color: #111827;
  margin-right: 8px;
}

.ig-comment-text {
  color: #374151;
}

/* Comment Form */
.ig-comment-form {
  padding: 16px 24px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ig-comment-input {
  flex: 1;
  border: none;
  font-size: 15px;
  outline: none;
  color: #111827;
  background: #f9fafb;
  padding: 12px 16px;
  border-radius: 24px;
  transition: all 0.3s ease;
}

.ig-comment-input:focus {
  background: #fffef7;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.ig-comment-input::placeholder {
  color: #9ca3af;
}

.ig-comment-btn {
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  border: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 204, 128, 0.3);
}

.ig-comment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.ig-comment-btn:active {
  transform: translateY(0);
}

.ig-comment-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Empty State */
.empty-feed-state {
  background: white;
  border: none;
  border-radius: 20px;
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.empty-icon {
  font-size: 72px;
  margin-bottom: 20px;
  filter: grayscale(0.3);
}

.empty-feed-state h3 {
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.empty-feed-state p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

/* Social Tags */
.social-tag {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  color: #667eea;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
  border: 1px solid #667eea30;
  transition: all 0.3s ease;
}

.social-tag:hover {
  background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
  transform: translateY(-1px);
}

.social-tag-remove {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}

.social-tag-remove:hover {
  color: #ef4444;
}

/* Right Sidebar - Trending */
.ig-trending-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trending-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 215, 0, 0.2);
}

.trending-card:hover {
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.25);
  transform: translateY(-2px);
  border-color: rgba(255, 193, 7, 0.4);
}

.trending-card h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.trending-item {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item:hover {
  transform: translateX(4px);
}

.trending-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.trending-icon {
  font-size: 20px;
}

.trending-count {
  margin-left: auto;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
}

/* Stats Card */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1200px) {
  .ig-container {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
  
  .ig-trending-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .ig-container {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }
  
  .ig-sidebar {
    order: 2;
    position: static;
  }
  
  .ig-feed {
    order: 1;
  }
  
  .ig-trending-sidebar {
    display: none;
  }
  
  .btn-post-create {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  }
}

/* POST OLUŞTUR Button */
.btn-post-create {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.btn-post-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-post-create:active {
  transform: translateY(0);
}

/* Modal Close Button */
.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background: #f3f4f6;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Media Preview Grid (Upload Sidebar) */
.ig-post-actions {
  display: flex;
  gap: 8px;
}

.ig-action-menu-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.ig-action-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Media Preview Grid (Upload Sidebar) */
.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.media-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #dbdbdb;
}

.media-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview-remove:hover {
  background: rgba(0, 0, 0, 0.9);
}

.media-preview-index {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

/* Instagram Carousel */
.ig-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 0;
}

.ig-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.ig-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.ig-carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

.ig-carousel-item img,
.ig-carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ig-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  /* backdrop-filter: blur - FPS için kaldırıldı */
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.3s ease;
}

.ig-carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.ig-carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.ig-carousel-btn.prev {
  left: 16px;
}

.ig-carousel-btn.next {
  right: 16px;
}

.ig-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  /* backdrop-filter: blur - FPS için kaldırıldı */
  padding: 8px 12px;
  border-radius: 20px;
}

.ig-carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ig-carousel-dots .dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.ig-carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Modern Post Design Enhancements */
.instagram-post {
  background: white;
  border: none;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.instagram-post:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.ig-media-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
}

/* Loading optimization */
.ig-media-image[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e5e7eb 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Custom Scrollbar */
.ig-comments-section::-webkit-scrollbar,
.ig-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.ig-comments-section::-webkit-scrollbar-track,
.ig-container::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

.ig-comments-section::-webkit-scrollbar-thumb,
.ig-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.ig-comments-section::-webkit-scrollbar-thumb:hover,
.ig-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FFB74D 0%, #FFA000 100%);
}

/* Fade In Animation for Posts */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.instagram-post {
  animation: fadeInUp 0.5s ease-out;
}

/* Pulse Animation for New Button */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.4), 0 0 0 3px rgba(255, 215, 0, 0.1);
  }
  50% {
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.6), 0 0 0 5px rgba(255, 215, 0, 0.2);
  }
}

.btn-post-create {
  animation: pulse 2s infinite;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 204, 128, 0.2);
  border-top: 4px solid #FFCC80;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

/* Skeleton Loading for Posts */
.post-skeleton {
  background: white;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.skeleton-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e5e7eb 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  flex: 1;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e5e7eb 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 8px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #f0f0f0 25%, #e5e7eb 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  margin: 16px 0;
}

/* Smooth transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

button, a, .ig-action-btn, .social-tag-filter, .ig-tag {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Story Modal Base */
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Story Viewer Modal */
.story-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 10000;
  display: none;
  flex-direction: column;
}

.story-viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001;
}

.story-viewer-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.story-viewer-header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  /* backdrop-filter: blur - FPS için kaldırıldı */
  border-radius: 12px;
}

.story-viewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.story-viewer-time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.story-viewer-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 80px;
}

.story-viewer-content img,
.story-viewer-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.story-viewer-caption {
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.5);
  /* backdrop-filter: blur - FPS için kaldırıldı */
  border-radius: 12px;
  color: white;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  display: none;
}

.story-viewer-caption:not(:empty) {
  display: block;
}

@media (max-width: 768px) {
  .story-viewer-header {
    top: 10px;
    left: 10px;
    right: 60px;
  }
  
  .story-viewer-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .story-viewer-caption {
    bottom: 20px;
    left: 10px;
    right: 10px;
    font-size: 14px;
  }
}
