/* Logogram WordPress Plugin Styles */

/* Reset some basic elements */
#logogram-app, 
#logogram-app * {
  box-sizing: border-box;
}

#logogram-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #333;
  background-color: #f7f9fc;
  padding: 20px;
  border-radius: 8px;
}

/* Container layout */
.logogram-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #f7f9fc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Header */
.logogram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.logogram-header h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.logogram-credits {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Input Section */
.logogram-input-section {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logogram-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.logogram-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #4b5563;
}

.logogram-textarea {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.95rem;
  min-height: 100px;
  width: 100%;
  resize: vertical;
}

.logogram-style-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.logogram-style-option {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #f3f4f6;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.logogram-style-option:hover {
  background-color: #e5e7eb;
}

.logogram-style-option.selected {
  background-color: #6366f1;
  color: white;
}

.logogram-button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.logogram-button {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logogram-button-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.logogram-button-primary:hover {
  opacity: 0.9;
}

.logogram-button-secondary {
  background-color: #f3f4f6;
  color: #4b5563;
}

.logogram-button-secondary:hover {
  background-color: #e5e7eb;
}

.logogram-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Logo grid */
.logogram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Logo card */
.logogram-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.logogram-card-preview {
  aspect-ratio: 1/1;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.logogram-card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logogram-card:hover .logogram-card-overlay {
  opacity: 1;
}

.logogram-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.logogram-icon-button:hover {
  background-color: #6366f1;
  color: white;
}

.logogram-card-info {
  padding: 12px;
  border-top: 1px solid #f3f4f6;
}

.logogram-card-description {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logogram-card-style {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Loading states */
.logogram-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
}

.logogram-spinner {
  animation: spin 1s linear infinite;
  width: 20px;
  height: 20px;
}

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

/* Empty state */
.logogram-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #9ca3af;
  text-align: center;
}

.logogram-empty svg {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: #d1d5db;
}

.logogram-empty-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: #4b5563;
}

.logogram-empty-subtitle {
  font-size: 0.9rem;
}

/* Modal */
.logogram-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.logogram-modal {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s ease-out;
}

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

.logogram-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logogram-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.logogram-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logogram-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.logogram-modal-preview {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.logogram-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.logogram-modal-info {
  margin-bottom: 15px;
}

.logogram-modal-description {
  font-size: 1rem;
  margin-bottom: 5px;
}

.logogram-modal-meta {
  font-size: 0.85rem;
  color: #9ca3af;
}