/**
 * Vebende Akademi - Influencer Panel CSS (Light Theme)
 * Core Design System using CSS Variables
 */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --secondary-color: #4f46e5;
  --accent-color: #059669;
  --accent-glow: rgba(5, 150, 105, 0.2);
  --warning-color: #d97706;
  --danger-color: #dc2626;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #334155;
  
  --border-color: #e2e8f0;
  --border-focus: #2563eb;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 10px 25px rgba(37, 99, 235, 0.12);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.influencer-body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.07) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.07) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

/* Hidden view control for SPA */
.spa-view {
  display: none !important;
}

.spa-view.active-view {
  display: block !important;
}

/* Navbar Light */
.inf-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.inf-nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-decoration: none;
}

.inf-nav-link:hover, .inf-nav-link.active {
  color: var(--primary-color);
  background: #eff6ff;
}

.inf-nav-link.active {
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
}

/* Login Card */
.login-container {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  padding: 2.5rem;
}

.demo-credentials-box {
  background: #eff6ff;
  border: 1px dashed #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

/* Stat Cards Light */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: #bfdbfe;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: #eff6ff;
  color: var(--primary-color);
}

/* Custom Chart Styling */
.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 220px;
  padding-top: 2rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  max-width: 42px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.bar-fill:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px var(--primary-glow);
}

.bar-label {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bar-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

/* Announcement Cards */
.announcement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.announcement-card.read-card {
  border-left-color: var(--text-muted);
  background: var(--bg-subtle);
  opacity: 0.85;
}

.badge-priority-yuksek {
  background: #fef2f2;
  color: var(--danger-color);
  border: 1px solid #fecaca;
}

.badge-priority-normal {
  background: #eff6ff;
  color: var(--primary-color);
  border: 1px solid #bfdbfe;
}

.badge-priority-bilgi {
  background: #ecfdf5;
  color: var(--accent-color);
  border: 1px solid #a7f3d0;
}

/* Gift Reward Cards */
.gift-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.gift-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
}

.gift-thumb {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 0 auto 1rem auto;
  display: block;
}

.progress-bar-container {
  background: #e2e8f0;
  border-radius: var(--radius-full);
  height: 8px;
  width: 100%;
  overflow: hidden;
  margin: 0.75rem 0;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--accent-color), #10b981);
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Modals Light */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 90%;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  color: var(--text-main);
}

/* Inputs & Form Control Light */
.inf-input {
  background: var(--bg-input);
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: var(--transition-fast);
}

.inf-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.inf-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.inf-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.inf-btn-success {
  background: linear-gradient(135deg, var(--accent-color), #047857);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.inf-btn-success:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Utility Light */
.copy-badge {
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.copy-badge:hover {
  background: #eff6ff;
  border-color: var(--primary-color);
}
