/**
 * 빗썸 10만원 벌기 - Modern UI Design
 * PC 최적화, 현대적이고 세련된 디자인
 */

/* CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Modern Purple/Blue Theme */
  --color-primary: #667eea;
  --color-primary-dark: #5568d3;
  --color-secondary: #764ba2;
  --color-accent: #f093fb;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-error: #dc2626;

  /* Background */
  --color-bg: #0f172a;
  --color-bg-light: #1e293b;
  --color-bg-card: rgba(255, 255, 255, 0.05);
  --color-bg-secondary: #f8fafc;

  /* Text */
  --color-text: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;

  /* Border */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: #e2e8f0;

  /* Spacing & Radius */
  --spacing: 16px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.4);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Elements */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  z-index: 0;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px;
  position: relative;
  z-index: 1;
  color: #1e293b;
}

/* Header */
.header {
  margin-bottom: 48px;
  text-align: center;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.header h1 {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -1px;
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  animation: fadeIn 0.8s ease 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.badge-icon {
  font-size: 18px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Section */
.section {
  margin-bottom: 32px;
  padding: 32px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
  animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

.section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.section-description {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Notice Boxes */
.notice {
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border-left: 4px solid;
  background: white;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease both;
}

.notice.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left-color: var(--color-warning);
}

.notice strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.notice ul {
  margin-left: 24px;
}

.notice li {
  margin-bottom: 8px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.notice pre {
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.6;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  background-color: #f8fafc;
  transition: var(--transition);
  font-family: inherit;
}

.input:hover {
  border-color: #cbd5e1;
  background-color: white;
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Select dropdown styling */
select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.input:hover {
  border-color: var(--color-primary);
}

/* Number input styling */
input[type="number"].input {
  -moz-appearance: textfield;
}

input[type="number"].input::-webkit-outer-spin-button,
input[type="number"].input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Radio button styling */
input[type="radio"] {
  accent-color: var(--color-primary);
  cursor: pointer;
}

input[type="radio"]:hover {
  transform: scale(1.1);
}

/* Buttons */
.btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-right: 12px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-danger:hover {
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

/* Status Message */
.status-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.status-message.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid var(--color-success);
}

.status-message.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid var(--color-error);
}

.status-message.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 2px solid var(--color-warning);
}

/* Output Box */
.output-box {
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.6;
  color: #1e293b;
  transition: var(--transition);
}

.output-box:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.output-box.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: var(--color-success);
  color: #065f46;
}

.output-box.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: var(--color-error);
  color: #991b1b;
}

/* Loading Spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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

.spinner-overlay p {
  color: white;
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 2px solid #e2e8f0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.footer p {
  margin-bottom: 8px;
  line-height: 1.7;
}

.disclaimer {
  font-style: italic;
  color: var(--color-warning);
  font-weight: 500;
}

/* Scrollbar Styling */
.output-box::-webkit-scrollbar {
  width: 10px;
}

.output-box::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 5px;
}

.output-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-radius: 5px;
}

.output-box::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-dark), var(--color-secondary));
}

/* Responsive - PC Optimized */
@media (min-width: 1200px) {
  .container {
    padding: 64px;
  }

  .header h1 {
    font-size: 56px;
  }

  .section {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px 12px;
  }

  .container {
    padding: 24px;
  }

  .header h1 {
    font-size: 32px;
  }

  .section {
    padding: 20px;
  }

  .section h2 {
    font-size: 22px;
  }

  .btn {
    width: 100%;
    margin-right: 0;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  }
}

/* Trading Bot Styles */
.bot-status {
  animation: fadeInUp 0.6s ease both;
}

.bot-status-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.bot-status-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Bot log specific styling */
#botLog {
  font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  background: #0f172a;
  color: #e2e8f0;
  border: 2px solid #334155;
  overflow-y: auto;
}

#botLog::-webkit-scrollbar {
  width: 8px;
}

#botLog::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 4px;
}

#botLog::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

#botLog::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Bot buttons animation */
#startBotBtn:not(:disabled):hover {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
