/* KuyaPads Social - Advanced Social Media Tab */
/* LOCKED DESIGN - DO NOT MODIFY - This ensures visual consistency */

/* Notification System */
.notification-center {
  position: relative;
  margin-right: 1rem;
}

.notification-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.7rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover {
  background: #3b82f6;
  color: white !important;
  transform: scale(1.1);
  border-color: #3b82f6;
}

.notification-btn i {
  color: #ffffff !important;
  font-size: 1.4rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn i::before {
  content: "🔔";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.2rem;
}

.notification-btn:hover i {
  color: white !important;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: pulse 2s infinite;
  border: 2px solid white;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 350px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  animation: fadeInUp 0.3s ease;
}

.notification-dropdown.show {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 12px 12px 0 0;
}

.notification-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 600;
}

.notification-clear {
  background: none;
  border: none;
  color: var(--kp-color-primary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.notification-clear:hover {
  background: var(--kp-color-primary);
  color: white;
}

.notification-list {
  max-height: 250px;
  overflow-y: auto;
}

.notification-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.notification-item:hover {
  background: #f3f4f6;
}

.notification-item.unread {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3b82f6;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.notification-text {
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-time {
  color: #6b7280;
  font-size: 0.8rem;
}

.notification-reward {
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 600;
}

.notification-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  background: #f8fafc;
  border-radius: 0 0 12px 12px;
}

.notification-view-all {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.notification-view-all:hover {
  color: #1d4ed8;
}

/* Dark Mode Notification Styles */
.dark-mode .notification-dropdown {
  background: var(--kp-color-bg-dark);
  border-color: var(--kp-border-color-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-mode .notification-header {
  border-bottom-color: var(--kp-border-color-dark);
}

.dark-mode .notification-item {
  border-bottom-color: var(--kp-border-color-dark);
}

.dark-mode .notification-item:hover {
  background: var(--kp-color-hover-dark);
}

.dark-mode .notification-item.unread {
  background: rgba(34, 139, 230, 0.1);
}

.dark-mode .notification-icon {
  background: var(--kp-color-hover-dark);
}

.dark-mode .notification-footer {
  border-top-color: var(--kp-border-color-dark);
}

/* Responsive Notification Styles */
@media (max-width: 768px) {
  .notification-dropdown {
    width: 300px;
    right: -50px;
  }
  
  .notification-item {
    padding: 0.5rem 0.75rem;
  }
  
  .notification-icon {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .notification-dropdown {
    width: 280px;
    right: -80px;
  }
}

/* Notification Toast Styles */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--kp-color-bg);
  border: 1px solid var(--kp-border-color);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  min-width: 300px;
}

.notification-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-toast .toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kp-color-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-toast .toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.notification-toast .toast-text {
  color: var(--kp-text-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.notification-toast .toast-reward {
  color: var(--kp-color-accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.notification-empty {
  padding: 2rem;
  text-align: center;
  color: var(--kp-text-muted);
  font-size: 0.9rem;
}

/* Dark Mode Toast Styles */
.dark-mode .notification-toast {
  background: var(--kp-color-bg-dark);
  border-color: var(--kp-border-color-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-mode .notification-toast .toast-icon {
  background: var(--kp-color-hover-dark);
}

/* Base Social Page Styles */
.kp-social {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2a2a2a 100%);
  min-height: 100vh;
  color: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Facebook-like Layout System */
.kp-social .social-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  padding: 20px;
  padding-top: 100px; /* Account for fixed header */
}

.kp-social .social-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #facc15 transparent;
}

.kp-social .social-main {
  flex: 1;
  max-width: 600px;
  min-width: 0;
}

.kp-social .social-rightbar {
  flex: 0 0 320px;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #facc15 transparent;
}

/* Mobile Responsive Layout */
@media (max-width: 1024px) {
  .kp-social .social-container {
    gap: 15px;
    padding: 15px;
  }
  
  .kp-social .social-sidebar {
    flex: 0 0 240px;
  }
  
  .kp-social .social-rightbar {
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) {
  .kp-social .social-container {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .kp-social .social-sidebar,
  .kp-social .social-rightbar {
    flex: none;
    position: static;
    width: 100%;
    max-height: none;
  }
  
  .kp-social .social-sidebar {
    order: 1;
  }
  
  .kp-social .social-main {
    order: 2;
  }
  
  .kp-social .social-rightbar {
    order: 3;
  }
}

/* Clean Modern Cards */
.kp-social .social-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.kp-social .social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(250, 204, 21, 0.3);
}

/* Stories Section */
.kp-social .story-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kp-social .story-container::-webkit-scrollbar {
  display: none;
}

.kp-social .story-item {
  flex: 0 0 80px;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.2);
}

.kp-social .story-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.3);
}

.kp-social .story-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid white;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
}

.kp-social .story-username {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Advanced Post Creator */
.kp-social .post-creator {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.kp-social .post-creator:hover {
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.1);
}

.kp-social .post-creator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.kp-social .post-creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #facc15;
  object-fit: cover;
}

.kp-social .post-creator-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 12px 20px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.kp-social .post-creator-input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.kp-social .post-creator-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.kp-social .post-creator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.kp-social .post-creator-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kp-social .post-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-family: inherit;
}

.kp-social .post-tool:hover {
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.3);
  color: white;
  transform: translateY(-1px);
}

.kp-social .post-btn {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  border: none;
  border-radius: 20px;
  color: #1a1a1a;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.2);
}

.kp-social .post-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.3);
}

/* Feed Posts */
.kp-social .feed-post {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.kp-social .feed-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(250, 204, 21, 0.2);
}

.kp-social .post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.kp-social .post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #facc15;
  object-fit: cover;
}

.kp-social .post-user-info {
  flex: 1;
}

.kp-social .post-username {
  font-weight: 600;
  color: white;
  font-size: 16px;
  margin-bottom: 2px;
}

.kp-social .post-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.kp-social .post-menu {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.kp-social .post-menu:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.kp-social .post-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 15px;
}

.kp-social .post-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.kp-social .post-media img,
.kp-social .post-media video {
  width: 100%;
  height: auto;
  display: block;
}

.kp-social .post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kp-social .post-action {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 14px;
}

.kp-social .post-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-1px);
}

.kp-social .post-action.active {
  color: #facc15;
  background: rgba(250, 204, 21, 0.1);
}

.kp-social .kpc-reward {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 6px;
  box-shadow: 0 1px 4px rgba(250, 204, 21, 0.2);
}

/* Sidebar Components */
.kp-social .trending-topics,
.kp-social .online-friends,
.kp-social .live-streams,
.kp-social .nft-showcase,
.kp-social .earning-stats,
.kp-social .quick-actions {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.kp-social .trending-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
  border-bottom: 2px solid #facc15;
  padding-bottom: 8px;
}

.kp-social .trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.kp-social .trending-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 12px;
  padding-right: 12px;
}

.kp-social .trending-item:last-child {
  border-bottom: none;
}

.kp-social .trending-tag {
  color: #facc15;
  font-weight: 600;
  font-size: 15px;
}

.kp-social .trending-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* Friends List */
.kp-social .friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.kp-social .friend-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 12px;
  padding-right: 12px;
}

.kp-social .friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.kp-social .friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kp-social .online-indicator {
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 0 1px #10b981;
}

.kp-social .friend-name {
  color: white;
  font-weight: 500;
  font-size: 15px;
}

/* Live Streams */
.kp-social .live-stream-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.kp-social .live-stream-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 12px;
  padding-right: 12px;
}

.kp-social .live-thumbnail {
  width: 60px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  position: relative;
  overflow: hidden;
}

.kp-social .live-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: #ff4444;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.kp-social .live-info {
  flex: 1;
}

.kp-social .live-title {
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.kp-social .live-viewers {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* NFT Showcase */
.kp-social .nft-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.kp-social .nft-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 12px;
  padding-right: 12px;
}

.kp-social .nft-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.2);
}

.kp-social .nft-info {
  flex: 1;
}

.kp-social .nft-name {
  color: white;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 15px;
}

.kp-social .nft-price {
  color: #facc15;
  font-size: 14px;
  font-weight: 600;
}

/* Earning Stats */
.kp-social .earning-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kp-social .earning-item:last-child {
  border-bottom: none;
}

.kp-social .earning-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.kp-social .earning-value {
  color: #facc15;
  font-weight: 600;
  font-size: 15px;
}

/* Quick Actions */
.kp-social .quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.kp-social .quick-action:hover {
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.3);
  transform: translateY(-1px);
}

.kp-social .quick-action:last-child {
  margin-bottom: 0;
}

.kp-social .quick-action-icon {
  width: 24px;
  height: 24px;
  color: #facc15;
}

.kp-social .quick-action-text {
  color: white;
  font-weight: 500;
  font-size: 15px;
}

/* Scrollbar Styling */
.kp-social .social-sidebar::-webkit-scrollbar,
.kp-social .social-rightbar::-webkit-scrollbar {
  width: 6px;
}

.kp-social .social-sidebar::-webkit-scrollbar-track,
.kp-social .social-rightbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.kp-social .social-sidebar::-webkit-scrollbar-thumb,
.kp-social .social-rightbar::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.5);
  border-radius: 3px;
}

.kp-social .social-sidebar::-webkit-scrollbar-thumb:hover,
.kp-social .social-rightbar::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 204, 21, 0.7);
}

/* Animation and Transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kp-social .social-card,
.kp-social .feed-post,
.kp-social .post-creator {
  animation: fadeInUp 0.6s ease-out;
}

.kp-social .social-card:nth-child(1) { animation-delay: 0.1s; }
.kp-social .social-card:nth-child(2) { animation-delay: 0.2s; }
.kp-social .social-card:nth-child(3) { animation-delay: 0.3s; }
.kp-social .social-card:nth-child(4) { animation-delay: 0.4s; }
.kp-social .social-card:nth-child(5) { animation-delay: 0.5s; }

/* Advanced Responsive Design */
@media (max-width: 480px) {
  .kp-social .social-container {
    padding: 10px;
  }
  
  .kp-social .social-card,
  .kp-social .feed-post,
  .kp-social .post-creator {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .kp-social .post-creator-tools {
    gap: 8px;
  }
  
  .kp-social .post-tool {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .kp-social .story-container {
    padding: 5px 0;
  }
  
  .kp-social .story-item {
    flex: 0 0 70px;
    height: 100px;
  }
  
  .kp-social .story-avatar {
    width: 35px;
    height: 35px;
  }
  
  .kp-social .story-username {
    font-size: 10px;
  }
}

/* Performance Optimizations */
.kp-social * {
  box-sizing: border-box;
}

.kp-social .social-card,
.kp-social .feed-post,
.kp-social .post-creator {
  contain: layout style;
}

.kp-social img {
  max-width: 100%;
  height: auto;
}

/* Accessibility Improvements */
.kp-social .post-action:focus,
.kp-social .post-tool:focus,
.kp-social .post-btn:focus {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

.kp-social .post-creator-input:focus {
  outline: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .kp-social {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%);
  }
}

/* Google AdSense Integration */
.adsense-container {
  margin: 1rem 0;
  padding: 0.5rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  text-align: center;
  position: relative;
}

.adsense-label {
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.adsense-banner {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
}

.adsense-square {
  width: 300px;
  height: 250px;
  margin: 0 auto;
}

.adsense-mobile {
  width: 320px;
  height: 50px;
  margin: 0 auto;
}

.adsense-sidebar {
  width: 160px;
  height: 600px;
  margin: 0 auto;
}

.adsense-inline {
  width: 100%;
  max-width: 468px;
  height: 60px;
  margin: 1rem auto;
}

/* Ad placement in posts */
.post-ad-container {
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.post-ad-label {
  font-size: 0.65rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Video ad overlays */
.video-ad-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.shorts-ad-overlay {
  position: absolute;
  bottom: 100px;
  left: 10px;
  width: 300px;
  height: 250px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .adsense-banner {
    width: 320px;
    height: 50px;
  }
  
  .adsense-square {
    width: 300px;
    height: 250px;
  }
  
  .shorts-ad-overlay {
    width: 280px;
    height: 200px;
    bottom: 80px;
  }
}

/* Revenue Sharing Cards */
.kp-social .revenue-sharing-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
}

.kp-social .revenue-sharing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.kp-social .revenue-sharing-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kp-social .revenue-sharing-header i {
  font-size: 1.5rem;
  color: #facc15;
}

.kp-social .revenue-sharing-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.kp-social .revenue-sharing-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.kp-social .revenue-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.kp-social .revenue-benefit i {
  font-size: 0.8rem;
  color: #facc15;
  width: 16px;
  text-align: center;
}

.kp-social .revenue-cta-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kp-social .revenue-cta-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Clean spacing for social sidebar */
