/* homepage-only styles */

.stocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.stock-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.stock-card:hover {
  transform: translateY(-4px);
}

.stock-link {
  display: inline-block;
}

.stock-name {
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
}

.stock-symbol {
  font-size: 13px;
  color: #64748b;
}

/* hero */
.hero {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 80px;
}

.hero-content {
  background: white;
  border-radius: 32px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: visible;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  border-radius: 32px 32px 0 0;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.2;
}
.hero-description {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* search */
.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}
.search-box {
  width: 100%;
  padding: 20px 24px;
  font-size: 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  background: white;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  outline: none;
}
.search-box:focus {
  border-color: #3b82f6;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}
.search-box::placeholder {
  color: #94a3b8;
}

/* homepage sections */
.popular-stocks {
  margin-bottom: 80px;
}

/* responsive homepage tweaks */
@media (max-width: 768px) {
  .hero-content {
    padding: 40px 24px;
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }
}

.table a {
  color: inherit;
  text-decoration: none;
}

.table a:hover {
  text-decoration: none;
  color: inherit;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 520px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.table thead th {
  text-align: left;
  color: #334155;
  font-weight: 700;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  text-transform: capitalize;
}

.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.table td.amount {
  font-weight: 700;
  color: #0f172a;
}

.table td.date {
  color: #64748b;
  white-space: nowrap;
}

.table td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table td:first-child img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
