/* Main CSS - Common styles for MVRV application */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #000000;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Layout wrapper for ticker selection */
#layout-wrapper {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

#layout-wrapper .details-container,
#layout-wrapper .compare-card {
  width: 50%;
  flex: 1;
  margin: 0;
  min-width: 0;
}

/* Exchanges container styles */
.exchanges-container {
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: none;
}

.exchanges-container .exchanges-section {
  padding: 0;
}

.exchanges-container .exchanges-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.exchanges-container .exchanges-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exchanges-container .exchange-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.exchanges-container .exchange-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.exchanges-container .exchange-logo {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

.exchanges-container .exchange-name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Logo styles */
.logo {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  z-index: 10;
}

.logo img {
  height: 100px;
  width: auto;
}

/* Header styles */
.header {
  text-align: center;
  padding: 40px 0;
}

.header h1 {
  font-weight: 400;
  font-size: 42px;
  line-height: 56px;
  color: #eeeeee;
  margin: 0;
}

.colored {
  color: #9793f5;
  font-weight: 600;
}

.header p {
  font-size: 1.2rem;
  color: #a0a0b8;
  max-width: 600px;
  margin: 0 auto;
}

/* Explanation section */
.explanation {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2a2f4a;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  color: #d0d0e8;
  font-size: 1rem;
  line-height: 1.7;
}

/* Compare card styles */
.compare-card {
  padding: 30px;
  margin: 30px 0;
}

.compare-card h3 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

/* Compare inputs */
.compare-inputs {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.compare-input {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.compare-input label {
  font-weight: 600;
  color: #d0d0e8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* VS section */
.vs-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 10px;
}

.vs-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #667eea;
  margin: 0;
}

/* Swap button */
.swap-btn {
  background: rgba(102, 126, 234, 0.1);
  border: 2px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #667eea;
}

.swap-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.1);
}

.swap-btn:active {
  transform: scale(0.95);
}

/* Compare button */
.compare-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
  min-width: 200px;
}

.compare-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.compare-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner */
.loading {
  text-align: center;
  padding: 40px;
  color: #a0a0b8;
}

.spinner {
  border: 3px solid #2a2f4a;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  /* Layout wrapper responsive */
  #layout-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  #layout-wrapper .details-container,
  #layout-wrapper .compare-card {
    width: 100% !important;
    margin: 0;
    min-width: 100%;
  }

  .exchanges-container {
    padding: 16px;
    margin: 15px 0;
    width: 100% !important;
  }

  .exchanges-container .exchanges-title {
    font-size: 1rem;
  }

  .exchanges-container .exchange-item {
    padding: 10px 12px;
  }

  .exchanges-container .exchange-name {
    font-size: 0.85rem;
  }

  .logo {
    margin-bottom: 15px;
  }

  .logo img {
    height: 60px;
    width: auto;
    max-width: 80%;
  }

  .header {
    padding: 20px 0;
  }

  .header h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .compare-inputs {
    flex-direction: column;
    gap: 15px;
  }

  .vs-text {
    margin: 10px 0;
  }

  .compare-card {
    padding: 20px;
    margin: 20px 0;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 80px;
    max-width: 90%;
  }

  .header h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .header {
    padding: 15px 0;
  }

  .container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
  }
}
