/* ========================================
   Claim Flow Screens Styles
   ======================================== */

/* ========================================
   Common Screen Elements
   ======================================== */

.screen-title {
  font-size: var(--text-2xl);
  color: var(--color-gold-300);
  text-align: center;
  margin-bottom: var(--space-2);
}

.screen-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
}

.screen-subtitle strong {
  color: var(--color-gold-400);
}

/* ========================================
   Bank Selection Screen
   ======================================== */

.screen--bank {
  justify-content: flex-start;
  padding-top: 15vh;
}

.bank-content {
  width: 100%;
  max-width: 400px;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.search-wrapper {
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-gold-400);
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.bank-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-right: var(--space-2);
  /* Scrollbar padding */
  padding-bottom: var(--space-4);
}

.bank-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0; /* Prevent item shrinking */
}

.bank-item:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--color-gold-400);
  transform: translateX(4px);
}

.bank-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: white;
  padding: 4px;
  flex-shrink: 0;
}

.bank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Critical for truncation */
}

.bank-short-name {
  font-weight: 600;
  color: var(--color-text);
}

.bank-full-name {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   Account Input Screen
   ======================================== */

.account-content {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.selected-bank-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}

.bank-logo-large {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: white;
  padding: 4px;
}

.selected-bank-name {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gold-300);
}

.input-group {
  margin-bottom: var(--space-4);
}

.input-label {
  display: block;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.account-input {
  width: 100%;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-xl);
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.account-input:focus {
  border-color: var(--color-gold-400);
}

.attempts-info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.attempts-info strong {
  color: var(--color-gold-400);
}

.verify-button {
  width: 100%;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-gold-400), var(--color-gold-600));
  color: var(--color-red-900);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
  transition: all var(--transition-fast);
}

.verify-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(255, 193, 7, 0.5);
}

.verify-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.back-button {
  width: 100%;
  padding: var(--space-3);
  margin-top: var(--space-4);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast);
}

.back-button:hover {
  color: var(--color-gold-300);
}

/* ========================================
   Confirm Screen
   ======================================== */

.confirm-content {
  width: 100%;
  max-width: 360px;
}

.account-info-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row--highlight {
  background: rgba(255, 215, 0, 0.1);
  margin: var(--space-2) calc(var(--space-4) * -1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}

.info-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.info-value {
  font-size: var(--text-base);
  color: var(--color-text);
}

.amount-value {
  font-size: var(--text-xl);
  color: var(--color-gold-300);
}

.confirm-button {
  width: 100%;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-red-500), var(--color-red-700));
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-gold-400);
  box-shadow: var(--shadow-lg), var(--shadow-glow-red);
  transition: all var(--transition-fast);
}

.confirm-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(211, 47, 47, 0.5);
}

.confirm-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========================================
   Success Screen
   ======================================== */

.success-content {
  text-align: center;
}

.success-icon {
  font-size: 5rem;
  margin-bottom: var(--space-4);
  animation: celebrate 0.5s ease-out;
}

.success-title {
  font-size: var(--text-3xl);
  color: var(--color-gold-300);
  margin-bottom: var(--space-2);
}

.success-message {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.success-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.success-wish {
  font-size: var(--text-xl);
  color: var(--color-gold-400);
  font-weight: 600;
}

/* ========================================
   Scrollbar Styling
   ======================================== */

.bank-list::-webkit-scrollbar {
  width: 6px;
}

.bank-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.bank-list::-webkit-scrollbar-thumb {
  background: var(--color-gold-600);
  border-radius: 3px;
}

.bank-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-500);
}
