/* overview-component.css - Overview dashboard components
 * BroJack SOLIUS App Redesign - October 2025
 * Design specs from Figma (design-app-frame-1.md)
 */

/* ===== ANIMATIONS ===== */
@keyframes slide-in-card {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-balance {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-robot {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer-bar {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== OVERVIEW GRID LAYOUT ===== */
.overview-grid {
  display: grid;
  grid-template-columns: 288px 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 24px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(28, 35, 56, 0.4);
  border-radius: 32px;
  padding: 24px;
}

/* Grid positioning */
.balance-card {
  grid-column: 1;
  grid-row: 1;
}

.portfolio-card {
  grid-column: 1;
  grid-row: 2 / 4;
}

.crypto-call-card:nth-of-type(3) { /* First crypto call */
  grid-column: 2;
  grid-row: 1 / 3;
}

.crypto-call-card:nth-of-type(4) { /* Second crypto call */
  grid-column: 3;
  grid-row: 1 / 3;
}

.missions-card {
  grid-column: 2;
  grid-row: 3;
}

.bot-card {
  grid-column: 3;
  grid-row: 3;
}

/* ===== CARD BASE STYLES ===== */
.overview-card {
  background: linear-gradient(311.13deg, #00091E 22.82%, #303365 88.03%);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Removed transition - no card hover effects needed */
}

/* Removed card hover glow - no need to highlight hovered card */

.card-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  color: #FFFFFF;
}

.gradient-text {
  background: linear-gradient(171.81deg, #FFFFFF 27.25%, #C6C1FF 78.81%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lucide icons (Font Awesome fallback) */
.lucide-copy::before { content: "\f0c5"; font-family: 'Font Awesome 6 Free'; font-weight: 400; }
.lucide-chevron-down::before { content: "\f078"; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.lucide-check::before { content: "\f00c"; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.lucide-bell-ring::before { content: "\f0f3"; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

/* ===== BALANCE CARD ===== */
.balance-card {
  padding: 16px 24px;
  min-height: 140px;
}

.balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wallet-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #FFFFFF;
}

.wallet-address i {
  font-size: 16px;
  color: #7589B9;
  cursor: pointer;
  transition: color 0.2s ease;
}

.wallet-address i:hover {
  color: #FFFFFF;
}

.balance-amount {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.amount-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  background: linear-gradient(144.96deg, #FFFFFF 25.84%, #A5A8DB 75.23%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.amount-change {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.amount-change.positive {
  color: #7BFFBF;
}

.amount-change.negative {
  color: #FF7B7B;
}

/* ===== PORTFOLIO CARD ===== */
.portfolio-card {
  padding: 16px 24px;
  gap: 24px;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: linear-gradient(180deg, #384665 0%, #28325D 100%);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #FFFFFF;
}

.filter-dropdown:hover {
  background: linear-gradient(180deg, #4A5777 0%, #3A446F 100%);
  transform: scale(1.05);
}

.filter-dropdown:active {
  transform: scale(0.95);
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emoji {
  font-size: 16px;
}

.asset-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asset-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-info {
  display: flex;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #FFFFFF;
}

.asset-progress {
  width: 100%;
  height: 6px;
  background: #536285;
  border-radius: 20px;
  overflow: hidden;
}

.asset-progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.asset-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer-bar 2s infinite;
}

#roi-chart {
  width: 100%;
  height: auto;
  margin-top: 8px;
  cursor: crosshair;
  transition: all 0.2s ease;
}

#roi-chart:hover {
  filter: brightness(1.1);
}

/* ===== CRYPTO CALL CARDS ===== */
.crypto-call-card {
  padding: 24px;
  gap: 16px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.crypto-pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.pair-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #FFFFFF;
}

.pair-type {
  padding: 4px 12px;
  background: rgba(123, 255, 191, 0.15);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #7BFFBF;
}

.entry-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #A4A9B6;
}

.entry-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
}

.targets-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 8px;
}

.target-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.target-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: #FFFFFF;
}

.target-indicator {
  width: 12px;
  height: 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #73F5C9;
}

.target-indicator.active {
  background: #73F5C9;
  border-color: #73F5C9;
}

.target-indicator.active i {
  font-size: 8px;
  color: #00091E;
}

.indicator-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #73F5C9;
}

.target-connector {
  width: 1px;
  height: 12px;
  background: linear-gradient(180deg, #73F5C9 0%, rgba(115, 245, 201, 0) 100%);
  margin-top: 2px;
}

.target-prices {
  display: flex;
  justify-content: space-between;
  margin-top: -8px;
}

.target-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #FFFFFF;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #536285;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0118A9 0%, #7177E2 100%);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.btn-set-alert {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
  margin-top: 20px;
}

.btn-set-alert:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(85, 93, 255, 0.3);
}

.btn-set-alert:active {
  transform: translateY(0) scale(0.98);
}

.btn-set-alert i {
  font-size: 16px;
}

/* ===== MISSIONS CARD ===== */
.missions-card {
  padding: 24px;
  gap: 16px;
  min-height: 280px;
}

.missions-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.mission-item:hover {
  transform: translateX(4px);
}

.mission-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 100px;
  border: 1px solid #73F5C9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-checkbox.checked {
  background: #73F5C9;
  border-color: #73F5C9;
}

.mission-checkbox.checked i {
  font-size: 12px;
  color: #00091E;
}

.mission-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #FFFFFF;
}

.missions-description {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.mission-robot {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.missions-description p {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #A4A9B6;
}

/* ===== BOT CARD ===== */
.bot-card {
  position: relative;
  padding: 0;
  min-height: 280px;
  overflow: hidden;
  /* Background with dots pattern */
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(311.13deg, #00091E 22.82%, #303365 88.03%);
  background-size: 20px 20px, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: repeat, no-repeat;
}

/* Gradient overlay (lighter top right) */
.bot-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at top right, rgba(113, 120, 254, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.bot-card-inner {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 2;
}

.bot-header {
  margin-bottom: 16px;
}

.bot-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  position: relative;
  z-index: 3;
}

.bot-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-info-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bot-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #7589B9;
  min-width: 70px;
}

.bot-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
}

.bot-value-green {
  color: #7BFFBF;
}

.bot-value-yellow {
  color: #FFB86C;
}

.btn-test-bot {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 48px;
  width: auto;
  background: #5C64FF;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
  align-self: flex-start;
  position: relative;
  z-index: 3;
}

.btn-test-bot:hover {
  background: #555DFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 100, 255, 0.4);
}

.btn-test-bot:active {
  transform: translateY(0) scale(0.98);
}

/* Robot character on the right */
.bot-robot-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}

.bot-robot {
  width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

/* ===== RESPONSIVE (Future) ===== */
@media (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  
  .balance-card,
  .portfolio-card,
  .crypto-call-card,
  .missions-card,
  .bot-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

