@import "./styles/global.css";

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 3rem;
}

/* Logo Section */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.rust-logo,
.nano-logo {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.rust-logo:hover,
.nano-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px currentColor);
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid currentColor;
  transition: all 0.3s ease;
}

.logo-placeholder.rust {
  color: #ce422b;
  background: rgba(206, 66, 43, 0.1);
}

.logo-placeholder.nano {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1);
}

.rust-logo:hover .logo-placeholder.rust {
  background: rgba(206, 66, 43, 0.2);
  box-shadow: 0 0 30px rgba(206, 66, 43, 0.3);
}

.nano-logo:hover .logo-placeholder.nano {
  background: rgba(14, 165, 233, 0.2);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.plus-symbol {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-muted);
  user-select: none;
}

.app-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  background: linear-gradient(135deg, #ce422b, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.app-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}

/* Greet Section */
.greet-section {
  width: 100%;
  max-width: 400px;
}

.greet-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.greet-label {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.greet-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

.greet-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.greet-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.greet-button {
  padding: 0.75rem 1.5rem;
  background: var(--border-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.greet-button:hover:not(:disabled) {
  background: var(--state-info);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.greet-button:active:not(:disabled) {
  transform: translateY(0);
}

.greet-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.greet-response {
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  color: var(--text-primary);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Status Bar */
.status-bar {
  height: var(--statusbar-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  user-select: none;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.status-item {
  color: var(--text-secondary);
}

.status-separator {
  color: var(--text-muted);
  opacity: 0.6;
}