@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e1e1e;
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.1);

  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --text-tertiary: #6b6b6b;

  --accent-green: #00d084;
  --accent-red: #ff4757;
  --accent-blue: #4a90e2;
  --accent-orange: #ff9500;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

.hisse-detail-modern {
  min-height: 100vh;
  padding: 24px 16px;
  background: var(--bg-primary);
}

.container-modern { max-width: 1400px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
.breadcrumb-modern a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
.breadcrumb-modern a:hover { color: var(--text-primary); }
.breadcrumb-modern span:last-child { color: var(--text-primary); font-weight: 600; }

/* Header Card */
.header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.stock-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.stock-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #4a90e2 0%, #00d084 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.25);
  flex-shrink: 0;
}

.stock-info h1 {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.stock-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 14px;
}

.stock-badge {
  padding: 6px 14px;
  background: rgba(74, 144, 226, 0.12);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
}

.market-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 208, 132, 0.12);
  border: 1px solid rgba(0, 208, 132, 0.3);
  border-radius: 8px;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 8px; height: 8px; background: var(--accent-green);
  border-radius: 50%; animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Price Grid */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.price-card-small {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}
.price-card-small:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.price-label {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.price-value {
  font-size: 26px;
  font-weight: 900;
  font-family: 'Inter', monospace;
  color: var(--text-primary);
  line-height: 1.2;
}

.price-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.price-change.positive { background: rgba(0, 208, 132, 0.12); color: var(--accent-green); }
.price-change.negative { background: rgba(255, 71, 87, 0.12); color: var(--accent-red); }

/* Warning Notice */
.warning-notice {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.warning-notice-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.warning-notice-text { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.warning-notice-text strong { color: var(--text-primary); font-weight: 700; }

/* Main Grid */
.main-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
@media(max-width: 1100px) { .main-grid { grid-template-columns: 1fr; } }

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-header-modern {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.card-title { font-size: 20px; font-weight: 900; margin: 0; display: flex; align-items: center; gap: 10px; }
.card-body-modern { padding: 28px; }

/* Chart Controls */
.chart-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-btn {
  padding: 10px 18px;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.chart-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.chart-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }

.chart-container { position: relative; height: 480px; margin-top: 24px; }

/* Sidebar */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sidebar-section { padding: 24px; }
.sidebar-section + .sidebar-section { border-top: 1px solid var(--border-subtle); }
.sidebar-title {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Stock List */
.stock-list { display: flex; flex-direction: column; gap: 12px; }

.stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.stock-item:hover { background: rgba(255, 255, 255, 0.04); transform: translateX(4px); }

.stock-item-left { display: flex; flex-direction: column; gap: 4px; }

.stock-code {
  font-family: 'Inter', monospace;
  font-weight: 900;
  color: var(--accent-orange);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.stock-code:hover { color: var(--accent-blue); }

.stock-price { font-size: 13px; color: var(--text-secondary); font-weight: 600; }

.stock-change { font-weight: 900; font-size: 15px; }
.stock-change.up { color: var(--accent-green); }
.stock-change.down { color: var(--accent-red); }

/* Borsa Makaleleri */
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.article-item:hover { background: rgba(255, 255, 255, 0.04); transform: translateX(4px); }
.article-thumb {
  width: 64px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.article-title {
  font-weight: 900;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-title:hover { color: var(--accent-blue); }
.article-summary {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton */
.skeleton {
  display: inline-block;
  height: 16px;
  width: 90px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Empty State */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-tertiary); }
.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 15px; font-weight: 500; }

/* Comments */
.comment-widget-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}
.comment-widget-title h3 { margin: 0; font-size: 20px; font-weight: 900; }
.comment-widget-title small { color: var(--text-secondary); font-weight: 800; font-size: 13px; }

.comment-widget-body { padding: 24px 28px; }

.comment-form, .add-subcomment { margin-bottom: 24px; }
.comment-form h4 { margin: 0 0 12px 0; font-size: 16px; font-weight: 900; }

.comment-form textarea, .add-subcomment textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s;
}
.comment-form textarea:focus, .add-subcomment textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-blue);
}

.comment-form button, .add-subcomment button, .comment-more button {
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: rgba(74, 144, 226, 0.15);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.3s;
}
.comment-form button:hover, .add-subcomment button:hover, .comment-more button:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.comment-form p { margin-top: 12px; font-size: 12px; color: var(--text-tertiary); }
.comment-more { text-align: center; padding: 16px 0; }

/* Comment Blocks */
.comment { margin-bottom: 20px; }
.comment--reply { margin-left: 40px; margin-top: 12px; }

.c-body {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.c-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.c-user { display: flex; gap: 12px; align-items: center; flex: 1; }

.c-avatar-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-medium);
}

.c-user-meta { display: flex; flex-direction: column; gap: 4px; }

.c-name-row { display: flex; align-items: center; gap: 8px; }
.c-name { font-weight: 800; font-size: 15px; color: var(--text-primary); text-decoration: none; }
.c-name:hover { color: var(--accent-blue); }

.c-badge {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.c-datebox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-tertiary); font-weight: 600; }
.c-date { white-space: nowrap; }
.c-time { color: var(--text-secondary); }

.c-actions { display: flex; gap: 8px; }
.c-action-btn {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.c-action-btn:hover { background: rgba(255, 255, 255, 0.1); }

.c-content { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.cmt-img { max-width: 100%; border-radius: 8px; margin-top: 12px; }

.c-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-foot-left, .c-foot-right { display: flex; gap: 8px; align-items: center; }

.c-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.c-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }

.c-btn-secondary {
  background: rgba(255, 71, 87, 0.08);
  border-color: rgba(255, 71, 87, 0.2);
  color: var(--accent-red);
}
.c-btn-secondary:hover { background: rgba(255, 71, 87, 0.15); }

.c-vote {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.c-vote:hover { background: rgba(255, 255, 255, 0.06); }
.c-vote-up:hover { background: rgba(0, 208, 132, 0.12); border-color: rgba(0, 208, 132, 0.3); color: var(--accent-green); }
.c-vote-down:hover { background: rgba(255, 71, 87, 0.12); border-color: rgba(255, 71, 87, 0.3); color: var(--accent-red); }

.c-replies { margin-top: 12px; }
.add-subcomment { margin-top: 16px; padding: 16px; background: rgba(0, 0, 0, 0.2); border-radius: 12px; }
.formm { display: flex; gap: 12px; }
.usericont { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.inner { flex: 1; }
.subcomment-alt { margin-top: 12px; }

#thereisnewcomment {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(0, 208, 132, 0.12);
  border: 1px solid rgba(0, 208, 132, 0.25);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .stock-header { flex-direction: column; align-items: flex-start; }
  .price-grid { grid-template-columns: 1fr; }
  .chart-container { height: 320px; }
  .header-card { padding: 24px; }
  .card-body-modern { padding: 20px; }
  .comment-widget-body { padding: 20px; }
  .comment--reply { margin-left: 20px; }
  .stock-info h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  .price-value { font-size: 22px; }
  .stock-icon { width: 60px; height: 60px; font-size: 26px; }
  .c-head { flex-direction: column; }
  .c-datebox { align-self: flex-start; }
}
