/* Public Styles for WebsitesIdea WP Themes & Plugin Detector */
.witpd-public-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px auto;
    padding: 20px 25px;
    border: 1px solid #e0e4e7;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 800px;
}

.witpd-public-wrap h2 {
    font-size: 1.8em; font-weight: 600; color: #2c3e50;
    margin-top: 0; margin-bottom: 8px; text-align: center;
}
.witpd-public-wrap > p {
    text-align: center; color: #555; margin-bottom: 25px; font-size: 1.05em;
}

.witpd-detector-form {
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center; margin-bottom: 30px;
    padding: 15px; background-color: #f8f9fa; border-radius: 5px;
}
.witpd-detector-form .witpd-form-field { flex-grow: 1; }
.witpd-detector-form label { display: none; }

.witpd-detector-form .witpd-url-input {
    width: 100%; padding: 12px 15px; border: 1px solid #ced4da;
    border-radius: 4px; font-size: 1em; box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.witpd-detector-form .witpd-url-input:focus {
    border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); outline: none;
}

.witpd-detector-form .witpd-button {
    padding: 12px 25px; background-color: #007bff; color: white;
    border: none; border-radius: 4px; cursor: pointer;
    font-size: 1em; font-weight: 500; transition: background-color 0.2s ease-in-out;
    white-space: nowrap;
}
.witpd-detector-form .witpd-button:hover { background-color: #0056b3; }
.witpd-detector-form .witpd-button:disabled { background-color: #adb5bd; cursor: not-allowed; }

.witpd-detector-form .witpd-spinner {
    display: inline-block; width: 22px; height: 22px;
    border: 3px solid rgba(0, 123, 255, 0.2); border-radius: 50%;
    border-top-color: #007bff; animation: witpd-spin 0.8s linear infinite;
    vertical-align: middle; margin-left: 10px;
}
@keyframes witpd-spin { to { transform: rotate(360deg); } }
.witpd-detector-form .witpd-url-description { display: none; }

.witpd-results-area { margin-top: 20px; padding-top: 0; }
.witpd-results-area h3 {
    font-size: 1.5em; color: #343a40; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 1px solid #dee2e6; font-weight: 500;
}
.witpd-results-area h4 {
    font-size: 1.3em; color: #495057; margin-top: 25px;
    margin-bottom: 15px; font-weight: 500;
}

.witpd-item {
    display: flex; align-items: flex-start; margin-bottom: 20px;
    padding: 15px; border: 1px solid #e9ecef; background-color: #fff;
    border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.witpd-thumbnail { /* General thumbnail styling */
    margin-right: 15px; border: 1px solid #dee2e6;
    object-fit: contain; /* Changed from cover */
    background-color: #f8f9fa; border-radius: 3px;
    align-self: center; /* Vertically center */
}

.witpd-theme-info .witpd-thumbnail {
    width: 100px;
    height: 75px;
}

.witpd-item-details { flex: 1; }
.witpd-item-details strong {
    font-size: 1.15em; font-weight: 600; color: #343a40;
    display: block; margin-bottom: 4px;
}
.witpd-item-details p {
    margin: 0 0 5px 0; font-size: 0.95em; color: #495057; line-height: 1.6;
}
.witpd-item-details p a { color: #007bff; text-decoration: none; }
.witpd-item-details p a:hover { text-decoration: underline; }

.witpd-item-details .witpd-description {
    font-size: 0.9em; color: #6c757d; max-height: 60px;
    overflow-y: auto; margin-top: 6px; padding: 8px;
    background-color: #f8f9fa; border-radius: 3px; border: 1px solid #e9ecef;
}

.witpd-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.witpd-plugins-info .witpd-thumbnail {
    width: 75px;  /* Make plugin icon width similar to theme height */
    height: 75px; /* Make plugin icon square, matching theme height */
}

.witpd-notice {
    padding: 12px 18px; margin-bottom: 20px;
    border-width: 1px; border-style: solid; border-radius: 4px; font-size: 0.95em;
}
.witpd-notice-error { border-color: #f5c6cb; background-color: #f8d7da; color: #721c24; }
.witpd-notice-info { border-color: #bee5eb; background-color: #d1ecf1; color: #0c5460; }
.witpd-notice-warning {
    border-color: #ffeeba; background-color: #fff3cd; color: #856404;
    font-size: 0.85em; padding: 8px 12px;
}
.witpd-item .witpd-error { color: #721c24; font-weight: bold; }