:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #252525;
  --bg-card: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #808080;
  --accent-primary: #2196f3;
  --accent-hover: #1976d2;
  --success: #00c853;
  --danger: #ff3d00;
  --border: #333333;
  --shadow: rgba(0, 0, 0, 0.3);
}

body.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #eeeeee;
  --bg-card: #ffffff;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-section .logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #d0d0d0;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 8px;
  flex: 1;
  margin-left: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.nav-link.active {
  color: var(--accent-primary);
  background-color: var(--bg-tertiary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.lang-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
}

.btn-login {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 600;
}

.btn-login:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.main {
  padding: 32px 0 64px;
}

.market-overview {
  margin-bottom: 48px;
}

.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px var(--shadow);
}

.market-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 600;
}

.title-icon {
  font-size: 24px;
}

.crypto-scroll {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.crypto-scroll::-webkit-scrollbar {
  width: 6px;
}

.crypto-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.crypto-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.crypto-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.crypto-item:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.crypto-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.crypto-name {
  font-weight: 600;
  color: var(--text-primary);
}

.crypto-symbol {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.crypto-change {
  font-weight: 600;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 6px;
}

.positive {
  color: var(--success);
  background: rgba(0, 200, 83, 0.1);
}

.negative {
  color: var(--danger);
  background: rgba(255, 61, 0, 0.1);
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.crypto-table-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px var(--shadow);
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.table-header h2 {
  font-size: 24px;
  font-weight: 700;
}

.btn-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.btn-control:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}

.crypto-table {
  width: 100%;
  border-collapse: collapse;
}

.crypto-table th {
  text-align: left;
  padding: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid var(--border);
}

.crypto-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.crypto-table tbody tr {
  transition: background-color 0.3s;
}

.crypto-table tbody tr:hover {
  background-color: var(--bg-tertiary);
}

.coin-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.coin-name {
  font-weight: 600;
}

.coin-symbol {
  color: var(--text-secondary);
  font-size: 12px;
}

.sparkline {
  width: 100px;
  height: 40px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-page {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.btn-page:hover:not(:disabled) {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
}

.btn-page:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s;
  font-size: 14px;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

.loading,
.loading-row {
  text-align: center;
  padding: 32px;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .market-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-content {
    gap: 16px;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-login {
    padding: 8px 12px;
    font-size: 12px;
  }

  .market-stats {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
body {
  margin: 0;
  background: #0b0b06;
  font-family: Arial, sans-serif;
  color: white;
}

.crypto-section {
  max-width: 1400px;
  margin: 50px auto;
  padding: 20px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.content {
  flex: 1.2;
}

.content h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
}

.content p {
  margin-bottom: 18px;
  line-height: 1.6;
  color: #d1d1d1;
}

/* Sağdaki grafik kutusu */
.graphic {
  flex: 1;
  height: 350px;
  border-radius: 22px;
  position: relative;
  background: radial-gradient(circle at top left, #2d1a00, #0d0d0b);
  overflow: hidden;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

/* Grid efekti */
.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      transparent 95%,
      rgba(255, 165, 0, 0.15) 100%
    ),
    linear-gradient(90deg, transparent 95%, rgba(255, 165, 0, 0.15) 100%);
  background-size: 40px 40px;
  opacity: 0.3;
}

/* Turuncu dalga */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  fill: rgba(255, 140, 0, 0.25);
  stroke: rgba(255, 140, 0, 0.4);
  stroke-width: 2;
}

/* Bitcoin ikonu */
.btc-icon {
  position: absolute;
  right: 60px;
  top: 80px;
  animation: float 3s ease-in-out infinite;
}

.coin {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #ffb347, #ff8c00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
}

/* Yumuşak yukarı-aşağı animasyonu */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

/* HEADER GENEL */
.header {
  background: #0d0d0d;
  width: 100%;
  border-bottom: 1px solid rgba(255, 150, 0, 0.15);
}

.container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

/* HEADER içerik hizalama */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

/* LOGO */
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #ff9500;
  font-family: "Inter", sans-serif;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

/* Nav linkleri */
.nav-link,
.dropdown-btn {
  color: #d0d0d0;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: 0.25s;
}

.nav-link:hover,
.dropdown-btn:hover {
  background: rgba(255, 150, 0, 0.12);
  color: #ff9500;
}

.nav-link.active {
  background: rgba(255, 150, 0, 0.25);
  color: #ff9500;
  font-weight: 600;
}

/* DROPDOWN START */
.dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
}

/* Menü kutusu */
.dropdown-menu {
  position: absolute;
  top: 33.3px;
  left: 0;
  width: 260px;
  padding: 18px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 150, 0, 0.15);
  display: none;
  flex-direction: column;
  gap: 16px;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Make dropdown links look like plain text but show pointer on hover */
.dropdown-item {
  text-decoration: none;
  color: inherit;
}
.dropdown-item:visited {
  color: inherit;
}

/* Menü içi */
.menu-title {
  color: #bbb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.dropdown-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}

.dropdown-item:hover {
  background: rgba(255, 150, 0, 0.12);
}

.icon {
  color: #ff9500;
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.item-title {
  margin: 0;
  font-size: 14px;
}

.item-desc {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

/* HEADER RIGHT BUTTONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle,
.lang-toggle,
.btn-login {
  background: rgba(255, 150, 0, 0.12);
  border: 1px solid rgba(255, 150, 0, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: #ff9500;
  font-family: "Inter", sans-serif;
  transition: 0.25s;
}

.theme-toggle:hover,
.lang-toggle:hover,
.btn-login:hover {
  background: rgba(255, 150, 0, 0.25);
}

/* ================= ALT BÖLÜM ================= */
.contact-section {
  display: flex;
  justify-content: space-between;
  padding: 60px 80px;
  background: #0f0e0a;
}

.contact-left {
  max-width: 350px;
}

.logo {
  font-size: 42px;
  font-weight: 700;
  color: #ff9900;
}

.contact-btn {
  background: #ff9900;
  border: none;
  padding: 12px 24px;
  color: black;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 40px;
}

.copy {
  margin-top: 40px;
  color: #777;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.col h4 {
  margin-bottom: 14px;
  color: #ddd;
}

.col a {
  display: block;
  color: #b9b9b9;
  text-decoration: none;
  margin-bottom: 10px;
}

.col a:hover {
  color: #ff9900;
}

/* App buttons */
.app-btn {
  background: transparent;
  border: 1px solid #ff9900;
  padding: 10px 18px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  margin-bottom: 12px;
  display: block;
}

.app-btn:hover {
  background: #ff9900;
  color: black;
}

.top-stats-bar {
  width: 100%;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 40px;
  display: flex;
  gap: 35px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #d6d6d6;
  white-space: nowrap;
}

.top-stats-bar .stat-item {
  display: flex;
  gap: 8px;
}

.top-stats-bar span {
  color: #ffb347;
  font-weight: 600;
}

/* Mobil uyumluluk için eklemeler */

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  
  .market-cards {
    grid-template-columns: 1fr;
  }
  
  .crypto-section {
    flex-direction: column;
    gap: 30px;
    margin: 30px auto;
  }
  
  .graphic {
    width: 100%;
    height: 300px;
  }
  
  .btc-icon {
    right: 30px;
    top: 50px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .header-content {
    gap: 12px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .theme-toggle, 
  .lang-toggle,
  .btn-login {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .market-cards,
  .market-stats {
    grid-template-columns: 1fr;
  }
  
  .market-card {
    padding: 20px 16px;
  }
  
  .crypto-scroll {
    max-height: 300px;
  }
  
  .content h1 {
    font-size: 28px;
  }
  
  .graphic {
    height: 250px;
  }
  
  .coin {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .contact-section {
    flex-direction: column;
    padding: 40px 24px;
    gap: 40px;
  }
  
  .contact-left {
    max-width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .table-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .table-header h2 {
    font-size: 20px;
  }
  
  .crypto-table {
    font-size: 13px;
  }
  
  .crypto-table th,
  .crypto-table td {
    padding: 10px 8px;
  }
  
  .coin-icon {
    width: 24px;
    height: 24px;
  }
  
  .sparkline {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .logo-section {
    order: 1;
  }
  
  .header-actions {
    order: 2;
    margin-left: auto;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .theme-toggle, 
  .lang-toggle {
    padding: 6px 10px;
    min-width: 40px;
  }
  
  .btn-login {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .main {
    padding: 24px 0 48px;
  }
  
  .market-card-title {
    font-size: 18px;
  }
  
  .title-icon {
    font-size: 20px;
  }
  
  .crypto-item {
    padding: 10px;
  }
  
  .crypto-name {
    font-size: 14px;
  }
  
  .crypto-change {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .stat-card {
    padding: 20px 16px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .content h1 {
    font-size: 24px;
  }
  
  .content p {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .graphic {
    height: 200px;
  }
  
  .btc-icon {
    right: 20px;
    top: 40px;
  }
  
  .coin {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .pagination {
    gap: 12px;
  }
  
  .btn-page {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .page-info {
    font-size: 13px;
  }
  
  .crypto-table-section {
    padding: 20px 16px;
  }
  
  .table-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  .crypto-table {
    min-width: 600px;
  }
  
  .contact-btn {
    width: 100%;
    padding: 14px;
  }
  
  .col h4 {
    font-size: 16px;
  }
  
  .col a {
    font-size: 14px;
  }
  
  .app-btn {
    width: 100%;
    text-align: center;
  }
  
  .top-stats-bar {
    padding: 8px 16px;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    font-size: 12px;
    -webkit-overflow-scrolling: touch;
  }
  
  .top-stats-bar::-webkit-scrollbar {
    height: 3px;
  }
}

/* Dropdown mobil uyumu */
@media (max-width: 768px) {
  .dropdown {
    display: none;
  }
  
  .nav {
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: none;
    z-index: 99;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link,
  .dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border);
    margin-top: 8px;
  }
}

/* Hamburger menü için */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: 3;
  }
  
  .nav {
    display: none;
  }
  
  .nav.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

/* Tablo mobil kaydırma için */
.table-wrapper {
  -webkit-overflow-scrolling: touch;
}

/* Touch dostu butonlar */
.btn-control,
.btn-page,
.btn-login,
.theme-toggle,
.lang-toggle {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

/* Mobil için yatay kaydırılabilir içerik */
.scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Mobilde daha iyi dokunma deneyimi */
.crypto-item,
.nav-link,
.dropdown-item {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* iPhone notch ve güvenli alan desteği */
@supports (padding: max(0px)) {
  .container,
  .header-content,
  .main,
  .contact-section {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* Yatay mod için */
@media (max-height: 500px) and (orientation: landscape) {
  .header {
    position: static;
  }
  
  .crypto-scroll {
    max-height: 200px;
  }
  
  .graphic {
    height: 180px;
  }
}