@import url('colors.css');

.staking-window {
  width: 95%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.staking-header {
  text-align: center;
  margin-bottom: 30px;
}

.staking-title {
  color: var(--text-color2);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.farms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.farm-item {
  background-color: var(--window-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--input-border);
  transition: all 0.3s ease;
}

.farm-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.farm-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--input-border);
}

.farm-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apr-section,
.earn-section,
.earned-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.earned-info {
  display: flex;
  flex-direction: column;
}

.apr-label,
.earn-label,
.earned-label {
  color: var(--text-color-balance);
  font-size: 0.9rem;
  font-weight: 500;
}

.apr-value {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.earn-value {
  color: var(--text-color2);
  font-weight: 600;
}

.earned-amount {
  color: var(--text-color2);
  font-size: 1.1rem;
  font-weight: 600;
}

.withdraw-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.withdraw-btn:hover {
  transform: translateY(-1px);
}

.connected-section {
  padding-top: 16px;
  border-top: 1px solid var(--input-border);
}

.lp-section {
  margin-bottom: 16px;
}

.lp-label {
  color: var(--text-color-balance);
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.info-label {
  color: var(--text-color-balance);
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-color2);
  font-weight: 500;
}

.info-value.clickable {
  cursor: pointer;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

.info-value.clickable:hover {
  color: var(--primary-color-hover);
  text-decoration: underline;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.amount-input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-color2);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.amount-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.button-section {
  display: flex;
  gap: 8px;
}

.stake-btn,
.unstake-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stake-btn {
  background-color: var(--primary-color);
  color: white;
}

.stake-btn:hover {
  transform: translateY(-1px);
}

.unstake-btn {
  background-color: var(--color-red);
  color: white;
}

.unstake-btn:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-1px);
}

.reward-time-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--input-border);
}

.reward-time-label {
  color: var(--text-color-balance);
  font-size: 0.85rem;
  font-weight: 600;
}

.reward-time {
  color: var(--text-color2);
  font-size: 0.9rem;
}

.total-value-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--input-border);
}

.total-value-label {
  color: var(--text-color-balance);
  font-size: 0.9rem;
  font-weight: 500;
}

.total-value {
  color: var(--text-color2);
  font-weight: 600;
}

@media (max-width: 768px) {
  .farms-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .farm-item {
    padding: 20px;
  }
  
  .farm-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .apr-section,
  .earn-section {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .earned-section {
    flex-direction: column;
    gap: 8px;
  }
  
  .button-section {
    flex-direction: column;
  }
}