/**
 * ══════════════════════════════════════════════════════════════════════════════
 * GÖKÇEOS PROTOTYPE UI V2 — SOSYAL MEDYA YÖNETİM MERKEZİ (SOCIAL MEDIA CENTER) CSS
 * Multi-Platform Glassmorphic UI (Instagram, TikTok, FB, YouTube, Google Maps)
 * ══════════════════════════════════════════════════════════════════════════════
 */

.social-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.07) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(56, 189, 248, 0.05) 0%, transparent 45%),
              #090d16;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* Header & Navigation */
.social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.35);
}

.social-title-area h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-title-area p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.15rem 0 0 0;
}

.social-tabs {
  display: flex;
  background: rgba(2, 6, 23, 0.6);
  padding: 0.25rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.25rem;
}

.social-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.social-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.social-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
}

.social-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}

.social-btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Body Content Scrollable */
.social-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Quick Metrics Row */
.social-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.social-kpi-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.social-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color, #ec4899);
}

.social-kpi-label {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-kpi-value {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.35rem 0 0.2rem 0;
}

.social-kpi-trend {
  font-size: 0.74rem;
  color: #10b981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Channel Connect Status Strip */
.social-channels-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.social-channel-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.social-channel-badge.connected {
  border-color: rgba(16, 185, 129, 0.4);
}

.social-channel-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Calendar & Post Planner View */
.social-planner-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
}

@media (max-width: 1050px) {
  .social-planner-layout {
    grid-template-columns: 1fr;
  }
}

.social-calendar-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.2rem;
}

.social-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.social-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.social-cal-day {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  min-height: 90px;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.social-cal-day.today {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(236, 72, 153, 0.04);
}

.social-cal-day-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.social-cal-post-chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.45rem;
  border-radius: 5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.chip-instagram { background: rgba(225, 48, 108, 0.25); color: #f472b6; border: 1px solid rgba(225, 48, 108, 0.4); }
.chip-tiktok { background: rgba(0, 242, 234, 0.15); color: #22d3ee; border: 1px solid rgba(0, 242, 234, 0.3); }
.chip-facebook { background: rgba(24, 119, 242, 0.2); color: #60a5fa; border: 1px solid rgba(24, 119, 242, 0.35); }
.chip-google { background: rgba(234, 67, 53, 0.2); color: #f87171; border: 1px solid rgba(234, 67, 53, 0.35); }

/* Best Post Times AI Radar */
.social-ai-radar-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Interactions & Unified Inbox */
.social-inbox-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  min-height: 480px;
}

@media (max-width: 900px) {
  .social-inbox-grid {
    grid-template-columns: 1fr;
  }
}

.social-inbox-list {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.social-inbox-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s;
}

.social-inbox-item:hover, .social-inbox-item.active {
  background: rgba(255, 255, 255, 0.05);
}

.social-inbox-item.active {
  border-left: 3px solid #ec4899;
}

.social-inbox-detail {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Sentiment Badges */
.sentiment-positive { background: rgba(16, 185, 129, 0.2); color: #34d399; font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 99px; font-weight: 700; }
.sentiment-neutral { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 99px; font-weight: 700; }
.sentiment-urgent { background: rgba(239, 68, 68, 0.2); color: #f87171; font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 99px; font-weight: 700; }
