/* Exchequer Figma Design Implementation */

:root {
  /* Color Variables */
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --secondary: #F2C94C;
  --accent: #00FF88;
  --accent-purple: #FF00FF;
  --background-dark: #0A0B1E;
  --card-bg: rgba(13, 15, 25, 0.8);
  --text-light: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-light: rgba(255, 255, 255, 0.1);
  --success: #27AE60;
  --warning: #F2C94C;
  --error: #EB5757;
  --gradient-primary: linear-gradient(135deg, #00FF88 0%, #00BCD4 100%);
  --gradient-secondary: linear-gradient(45deg, #FF00FF 0%, #00FF88 100%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
}

/* Modern Card Styles */
.modern-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Note Card Styles */
.note-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.note-card .status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.note-card .status-badge.offering {
  background: var(--warning);
  color: #000;
}

.note-card .status-badge.pre-offering {
  background: var(--primary);
  color: var(--text-light);
}

.note-card .status-badge.matured {
  background: var(--success);
  color: var(--text-light);
}

.note-card .status-badge.sold {
  background: var(--error);
  color: var(--text-light);
}

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

.note-card .note-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
}

.note-card .note-issuer {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.note-card .note-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.note-card .detail-item {
  display: flex;
  flex-direction: column;
}

.note-card .detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.note-card .detail-value {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.note-card .note-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Portfolio Styles */
.portfolio-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.portfolio-stat {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portfolio-stat .stat-label {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.portfolio-stat .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
}

.portfolio-stat .stat-change {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.portfolio-stat .stat-change.positive {
  color: var(--accent);
}

.portfolio-stat .stat-change.negative {
  color: var(--error);
}

/* Buy Flow Styles */
.buy-container {
  max-width: 800px;
  margin: 0 auto;
}

.buy-header {
  margin-bottom: 2rem;
  text-align: center;
}

.buy-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.amount-input-wrapper {
  position: relative;
}

.amount-input-wrapper .currency {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.slider-container {
  padding: 0 0.5rem;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 1rem 0;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.range-values {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Signal Interest Styles */
.interest-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.interest-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.interest-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.interest-option.selected {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--accent);
}

.interest-option .option-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.interest-option .option-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .portfolio-overview {
    grid-template-columns: 1fr;
  }
  
  .interest-options {
    grid-template-columns: 1fr;
  }
  
  .note-card .note-details {
    grid-template-columns: 1fr;
  }
} 