/* xiΛix - AI Blog Publishing Agent */
/* Clean Minimal Theme with Logo Gradient */

/* ================================
   xiΛix Logo Styling
================================ */
.xiλix-logo {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: inherit;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ec4899 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xiλix-logo .lambda {
  background: linear-gradient(180deg, #a855f7 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Alternative: Horizontal Gradient */
.xiλix-logo-h {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  background: linear-gradient(90deg, #06b6d4 0%, #ec4899 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================
   Base & Reset
================================ */
* {
  box-sizing: border-box;
}

::selection {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

body {
  background: #ffffff;
  min-height: 100vh;
}

/* ================================
   Background (Clean White)
================================ */
.gradient-orb {
  display: none;
}

/* ================================
   Cards
================================ */
.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #d4d4d4;
}

.inner-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

/* ================================
   Buttons
================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #000000;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #262626;
}

.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #000000;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #262626;
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn.processing {
  background: #dc2626;
}

.upgrade-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #171717;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upgrade-btn:hover {
  background: #f5f5f5;
  border-color: #d4d4d4;
}

/* ================================
   Form Elements
================================ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #171717;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.input-field::placeholder {
  color: #a3a3a3;
}

.input-field:focus {
  border-color: #171717;
}

.input-field:hover {
  border-color: #d4d4d4;
}

select.input-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23737373' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row .input-field {
  flex: 1;
}

.test-btn {
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #171717;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.test-btn:hover {
  background: #f5f5f5;
}

.test-btn.testing {
  animation: pulse 1s infinite;
}

/* ================================
   Tabs
================================ */
.tab-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #737373;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #171717;
}

.tab-btn.active {
  background: white;
  color: #171717;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ================================
   Model Selection
================================ */
.model-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #737373;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-btn:hover {
  background: #f5f5f5;
  color: #171717;
}

.model-btn.active {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
}

/* ================================
   Status Elements
================================ */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
}

.status-text {
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 20px;
  font-weight: 500;
}

.status-text.success {
  color: #16a34a;
}

.status-text.error {
  color: #dc2626;
}

.status-text.testing {
  color: #171717;
}

/* ================================
   Icon Box
================================ */
.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1rem;
  background: #f5f5f5;
  color: #525252;
}

/* ================================
   Toggle Switch
================================ */
.toggle {
  position: relative;
  width: 52px;
  height: 28px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e5e5e5;
  border-radius: 34px;
  transition: 0.2s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle input:checked + .toggle-slider {
  background: #171717;
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* ================================
   Progress Bar
================================ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #171717;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ================================
   Modal
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

/* ================================
   Pricing Cards
================================ */
.pricing-card {
  position: relative;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.pricing-card:hover {
  border-color: #d4d4d4;
}

.pricing-card-featured {
  border: 2px solid #171717;
}

.pricing-card-featured:hover {
  border-color: #171717;
}

/* ================================
   Activity Items
================================ */
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: #f5f5f5;
}

.activity-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
}

.activity-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.activity-icon.pending {
  background: #fef3c7;
  color: #ca8a04;
}

.activity-icon.error {
  background: #fee2e2;
  color: #dc2626;
}

/* ================================
   Scrollbar
================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* ================================
   Responsive
================================ */
@media (max-width: 640px) {
  .card {
    border-radius: 16px;
  }
  
  .action-btn {
    width: 100%;
    padding: 14px 24px;
  }
  
  .gradient-orb {
    opacity: 0.3;
  }
}

/* ================================
   Utility Classes
================================ */
.hidden {
  display: none !important;
}

.text-gradient {
  color: #171717;
}

/* ================================
   Animations
================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
