/**
 * @file
 * Global styles for MEL Subscription trial indicator.
 */

/* Trial indicator in sidebar */
.trial-indicator {
  background: #f0f4ff;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid #e0e7ff;
  text-align: center;
}

.trial-indicator.expired {
  background: #fff0f5;
  border-color: #ffc0d9;
}

.trial-indicator.cancelling {
  background: #fff8e1;
  border-color: #ffe082;
}

/* Small subscription status badge in footer */
.subscription-status-badge {
  display: inline-block;
  background: #22c55e;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.subscription-status-badge.trial {
  background: #3b82f6;
}

.subscription-status-link {
  text-decoration: none;
}

.subscription-status-link:hover .subscription-status-badge {
  background: #16a34a;
}

.subscription-status-link:hover .subscription-status-badge.trial {
  background: #2563eb;
}

.trial-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trial-indicator.expired .trial-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.trial-indicator.cancelling .trial-icon {
  background: linear-gradient(135deg, #ffd54f 0%, #ff9800 100%);
}

.trial-icon svg {
  color: white;
}

.trial-info {
  flex: 1;
}

.trial-title {
  font-weight: 700;
  font-size: 20px;
  color: #1f2937;
  margin-bottom: 8px;
}

.trial-message,
.subscription-message {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
  word-wrap: break-word;
}

.trial-indicator.expired .trial-message {
  color: #e91e63;
  font-weight: 500;
}

.trial-button {
  background: #3b82f6;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.2s;
  display: inline-block;
  margin-top: 12px;
  width: 100%;
}

.trial-button:hover {
  background: #2563eb;
  color: white;
  text-decoration: none;
}

.trial-indicator.expired .trial-button {
  background: #e91e63;
}

.trial-indicator.expired .trial-button:hover {
  background: #c2185b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .trial-indicator {
    margin: 12px;
    padding: 12px;
  }
  
  .trial-icon {
    width: 40px;
    height: 40px;
  }
  
  .trial-title {
    font-size: 14px;
  }
  
  .trial-message {
    font-size: 12px;
  }
  
  .trial-button {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 12px;
    display: block;
    text-align: center;
    width: 100%;
  }
}