/**
 * Subscriptions plugin styles
 */

/* Subscription Plans */
.plans-container {
  margin-bottom: 2rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.plan-card {
  background: var(--component-bg, var(--background-color));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plan-header {
  margin-bottom: 1rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.plan-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-color, #4a5af8);
}

.plan-description {
  margin-bottom: 1.5rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  flex-grow: 1;
}

.plan-features {
  margin-bottom: 1.5rem;
}

.plan-feature {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-feature:last-child {
  border-bottom: none;
}

.feature-name {
  font-weight: 500;
}

.feature-value {
  font-weight: 600;
  color: var(--accent-color, #4a5af8);
}

.subscribe-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-color, #4a5af8);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.subscribe-btn:hover {
  background: var(--accent-hover, #3a4ae8);
}

/* User Subscriptions */
.subscriptions-container {
  margin-bottom: 2rem;
}

.subscription-card {
  background: var(--component-bg, var(--background-color));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.subscription-plan {
  font-size: 1.2rem;
  font-weight: 500;
}

.subscription-status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-active {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.status-inactive {
  background: rgba(189, 195, 199, 0.2);
  color: #bdc3c7;
}

.status-warning {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.status-canceled {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.subscription-details {
  margin-bottom: 1rem;
}

.subscription-price {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.subscription-period {
  font-size: 0.9rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.subscription-cancel-notice {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #e74c3c;
}

.subscription-actions {
  display: flex;
  justify-content: flex-end;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--accent-color, #4a5af8);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover, #3a4ae8);
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* Command Results */
.subscription-plans-result,
.my-subscriptions-result {
  background: var(--code-bg, rgba(0, 0, 0, 0.2));
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.subscription-plans-result pre,
.my-subscriptions-result pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: monospace;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .subscription-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .subscription-status {
    margin-top: 0.5rem;
  }
}
