/* calls-component.css - Crypto trading calls/signals dashboard
 * BroJack Agent #6 - October 2025
 * REHAUL: Crypto trading signals with LEGENDARY animations!
 */

/* ===== ANIMATIONS ===== */
@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(123, 255, 191, 0.6),
                 0 0 20px rgba(123, 255, 191, 0.4);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 20px rgba(123, 255, 191, 0.8),
                 0 0 30px rgba(123, 255, 191, 0.6);
    transform: scale(1.02);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(85, 93, 255, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(85, 93, 255, 0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes flow-animation {
  0% {
    background: linear-gradient(180deg, #73F5C9 0%, rgba(115, 245, 201, 0) 50%, rgba(115, 245, 201, 0) 100%);
  }
  50% {
    background: linear-gradient(180deg, rgba(115, 245, 201, 0) 0%, #73F5C9 50%, rgba(115, 245, 201, 0) 100%);
  }
  100% {
    background: linear-gradient(180deg, rgba(115, 245, 201, 0) 0%, rgba(115, 245, 201, 0) 50%, #73F5C9 100%);
  }
}

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

/* ===== CALLS GRID LAYOUT ===== */
.calls-container {
  position: relative; /* Needed for Coming Soon overlay positioning */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 40px 0;
}

.calls-grid {
  display: grid;
  grid-template-columns: repeat(3, 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: 40px;
}

/* Grid positioning */
.calls-card.active-call-featured {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.calls-card.recent-calls-card {
  grid-column: 3;
  grid-row: 1 / 3;
}

.calls-card.stats-card {
  grid-column: 1;
  grid-row: 3;
}

.calls-card.top-performers-card {
  grid-column: 2;
  grid-row: 3;
}

.calls-card.alerts-card {
  grid-column: 3;
  grid-row: 3;
}

.calls-card.upcoming-card {
  grid-column: 1 / 3;
  grid-row: 4;
}

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

.calls-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.calls-card .card-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #FFFFFF;
}

.call-badge {
  padding: 4px 12px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.call-badge.long {
  background: rgba(123, 255, 191, 0.2);
  color: #7BFFBF;
}

.call-badge.short {
  background: rgba(255, 85, 88, 0.2);
  color: #FF5558;
}

.btn-card-action {
  background: none;
  border: none;
  color: #7BFFBF;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-card-action:hover {
  opacity: 0.8;
}

/* ===== FEATURED CALL ===== */
.featured-call-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.call-price-section {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  text-align: center;
}

.current-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.price-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #A4A9B6;
}

.price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
}

.price-change {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

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

.price-change.negative {
  color: #FF5558;
}

.call-targets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.target-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #A4A9B6;
  font-weight: 500;
}

.entry-range {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.targets-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

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

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #73F5C9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

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

.target-step.completed .step-indicator i {
  color: #00091E;
  font-size: 14px;
}

.target-step.active .step-indicator {
  animation: float-up 2s ease-in-out infinite;
}

.step-indicator.pulse {
  background: rgba(85, 93, 255, 0.3);
  border-color: #555DFF;
  animation: pulse-glow 2s ease-in-out infinite;
}

.step-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #FFFFFF;
  white-space: nowrap;
}

.target-connector {
  flex: 1;
  height: 2px;
  background: rgba(115, 245, 201, 0.2);
  margin: 0 8px;
  position: relative;
}

.target-connector.active {
  background: linear-gradient(90deg, #73F5C9 0%, rgba(115, 245, 201, 0) 100%);
}

.call-metadata {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #A4A9B6;
}

.btn-follow-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #555DFF;
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-follow-call:hover {
  background: #6B73FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(85, 93, 255, 0.4);
}

/* ===== RECENT CALLS LIST ===== */
.calls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.call-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.call-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.call-token {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.token-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.call-type {
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.call-type.long {
  background: rgba(123, 255, 191, 0.2);
  color: #7BFFBF;
}

.call-type.short {
  background: rgba(255, 85, 88, 0.2);
  color: #FF5558;
}

.call-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.call-profit {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.call-profit.positive {
  color: #7BFFBF;
}

.call-profit.negative {
  color: #FF5558;
}

.call-status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.call-status-badge.active {
  background: rgba(85, 93, 255, 0.2);
  color: #555DFF;
}

.call-status-badge.hit-t2 {
  background: rgba(123, 255, 191, 0.2);
  color: #7BFFBF;
}

.call-status-badge.completed {
  background: rgba(164, 169, 182, 0.2);
  color: #A4A9B6;
}

.call-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #A4A9B6;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFFFFF;
}

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

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #A4A9B6;
}

/* ===== TOP PERFORMERS ===== */
.performers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.performer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.performer-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.performer-rank {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFB86C;
  width: 32px;
}

.performer-info {
  flex: 1;
}

.performer-token {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.performer-duration {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #A4A9B6;
}

.performer-return {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.performer-return.positive {
  color: #7BFFBF;
}

/* ===== ALERTS SETTINGS ===== */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #FFFFFF;
}

.setting-item:last-child {
  border-bottom: none;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .slider {
  background: #555DFF;
}

.toggle input:checked + .slider:before {
  transform: translateX(24px);
}

/* ===== UPCOMING SIGNALS ===== */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555DFF;
  flex-shrink: 0;
}

.upcoming-info {
  flex: 1;
}

.upcoming-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.upcoming-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #A4A9B6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .calls-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  
  .calls-card.active-call-featured,
  .calls-card.recent-calls-card,
  .calls-card.stats-card,
  .calls-card.top-performers-card,
  .calls-card.alerts-card,
  .calls-card.upcoming-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .calls-container {
    padding: 20px 0;
  }
  
  .calls-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  
  .targets-progress {
    flex-direction: column;
    gap: 16px;
  }
  
  .target-connector {
    width: 2px;
    height: 20px;
    margin: 0;
  }
}
