/* Admin styles for WP Plugin Creator Tool */
.wppct-wrap { 
  max-width: none;
  width: 100%;
  margin: 20px 0;
  padding: 0;
}

.wppct-form { margin-top: 14px; }

.wppct-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 20px; 
}

.card { 
  background: #fff; 
  border: 1px solid #ccd0d4; 
  border-radius: 4px; 
  padding: 20px; 
  box-sizing: border-box;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  margin-bottom: 20px;
}

.card h2 { 
  margin-top: 0; 
  margin-bottom: 15px;
  color: #23282d;
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.field { 
  margin: 10px 0; 
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="url"],
.field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 14px;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field.cols-3 { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 15px; 
}

.choices { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 10px; 
  margin-top: 10px;
}

.choices.cols-2 { 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

.choices.cols-3 { 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

.choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: normal;
  margin-bottom: 0;
}

.choices label .label-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.choices label:hover {
  background: #f0f0f0;
}

.choices input[type="radio"],
.choices input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.req { 
  color: #d63638; 
}

.hint { 
  color: #646970; 
  display: block; 
  font-size: 13px;
  margin-top: 4px;
}

.actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  flex-wrap: wrap;
}

.actions .button {
  min-height: 36px;
  padding: 0 16px;
  white-space: nowrap;
}

.status { 
  margin-left: auto; 
  color: #1d2327; 
  font-weight: 500; 
  font-size: 14px;
}

.output textarea { 
  width: 100%; 
  height: 400px; 
  font-family: Menlo, Consolas, monospace; 
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  resize: vertical;
}

.zip-instructions ol { 
  padding-left: 18px; 
}

.zip-instructions li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .choices.cols-2,
  .choices.cols-3 {
    grid-template-columns: 1fr;
  }
  
  .field.cols-3 { 
    grid-template-columns: 1fr; 
    gap: 15px;
  }
  
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .actions .button {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .status {
    margin-left: 0;
    text-align: center;
    order: -1;
    margin-bottom: 15px;
  }
  
  .output textarea {
    height: 300px;
    font-size: 13px;
  }
  
  .field input[type="text"],
  .field input[type="url"],
  .field textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    max-width: 100%;
  }
}

/* Additional styling for better full-width experience */
.wppct-wrap h1 {
  color: #23282d;
  margin-bottom: 10px;
}

.wppct-wrap .description {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

/* Results section styling */
.card.output {
  background: #f8f9fa;
  border-left: 4px solid #0073aa;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.output-header h2 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

#copy-prompt {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
}

#copy-prompt .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

#copy-prompt.copied {
  background: #00a32a;
  border-color: #00a32a;
  color: #fff;
}

.card.zip-instructions {
  background: #f0f6fc;
  border: 1px solid #c6e2ff;
}

/* Loading animation */
.wppct-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.wppct-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #0073aa;
  border-radius: 50%;
  border-top-color: transparent;
  animation: wppct-spin 1s linear infinite;
}

@keyframes wppct-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tooltip Styling */
.wppct-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  flex-shrink: 0;
}

.wppct-tooltip .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #666;
  transition: color 0.2s ease;
}

.wppct-tooltip:hover .dashicons {
  color: #0073aa;
}

.wppct-tooltip-content {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  padding: 16px;
  width: 320px;
  z-index: 1000;
  font-size: 13px;
  line-height: 1.4;
}

.wppct-tooltip-content.show {
  display: block;
}

.wppct-tooltip-content h4 {
  margin: 0 0 12px 0;
  color: #23282d;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.wppct-tooltip-content .tooltip-section {
  margin-bottom: 12px;
}

.wppct-tooltip-content .tooltip-section:last-child {
  margin-bottom: 0;
}

.wppct-tooltip-content strong {
  color: #23282d;
  font-weight: 600;
}

.wppct-tooltip-content ul {
  margin: 4px 0 0 0;
  padding-left: 16px;
}

.wppct-tooltip-content li {
  margin-bottom: 2px;
  color: #555;
}

/* PHP Version Links */
.php-version-links {
  margin-top: 8px;
  font-size: 12px;
}

.version-label {
  color: #666;
  margin-right: 8px;
}

.php-version-link {
  display: inline-block;
  padding: 2px 6px;
  margin: 0 2px;
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  color: #555;
  font-size: 11px;
  transition: all 0.2s ease;
}

.php-version-link:hover {
  background: #e0e0e0;
  border-color: #ccc;
  text-decoration: none;
}

.php-version-link.compatible {
  background: #d4edda;
  border-color: #00a32a;
  color: #00a32a;
  font-weight: 500;
}

.php-version-link.recommended {
  background: #e7f3ff;
  border-color: #0073aa;
  color: #0073aa;
  font-weight: 500;
}

.php-version-link.current {
  background: #00a32a;
  border-color: #00a32a;
  color: #fff;
  font-weight: 500;
}

.php-version-link.compatible:hover {
  background: #c3e6cb;
}

.php-version-link.recommended:hover {
  background: #cce7ff;
}

.php-version-link.current:hover {
  background: #008a20;
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
  .wppct-tooltip-content {
    width: 280px;
    font-size: 12px;
  }
  
  .choices label {
    position: relative;
  }
  
  .php-version-links {
    margin-top: 6px;
  }
  
  .php-version-link {
    margin: 1px;
    padding: 3px 5px;
  }
}

/* Shortcode form styles */
.wppct-shortcode-wrap {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  margin: 20px 0;
}

.wppct-shortcode-wrap h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #23282d;
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.wppct-shortcode-form p {
  margin: 10px 0;
}

.wppct-shortcode-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.wppct-shortcode-form input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 14px;
}

.wppct-shortcode-form .button-primary {
  background: #0073aa;
  border-color: #0073aa;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.wppct-shortcode-form .button-primary:hover {
  background: #005a87;
  border-color: #005a87;
}

.wppct-generated-prompt {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.wppct-generated-prompt h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #23282d;
  font-size: 16px;
}

.wppct-generated-prompt textarea {
  width: 100%;
  height: 100px;
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  resize: vertical;
}