.wp-prompt-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.wp-prompt-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #23282d;
}

.wp-prompt-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.wp-prompt-search {
    position: relative;
    min-width: 250px;
}

.wp-prompt-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wp-prompt-search input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.wp-prompt-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

.wp-prompt-category-filter {
    min-width: 200px;
}

.wp-prompt-category-filter select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-prompt-category-filter select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.wp-prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.wp-prompt-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.wp-prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.wp-prompt-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.wp-prompt-card-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-prompt-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #23282d;
    line-height: 1.4;
}

.wp-prompt-card-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.wp-prompt-card-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.wp-prompt-stars {
    display: flex;
    margin-right: 5px;
}

.wp-prompt-star {
    color: #ccc;
    font-size: 16px;
    cursor: default;
}

.wp-prompt-star.active {
    color: #ffb900;
}

.wp-prompt-stars-interactive .wp-prompt-star {
    cursor: pointer;
}

.wp-prompt-rating-count {
    font-size: 12px;
    color: #777;
}

.wp-prompt-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.wp-prompt-card-date {
    font-size: 12px;
    color: #777;
}

.wp-prompt-card-button {
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wp-prompt-card-button:hover {
    background-color: #135e96;
}

.wp-prompt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.wp-prompt-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wp-prompt-pagination-number,
.wp-prompt-pagination-prev,
.wp-prompt-pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wp-prompt-pagination-number:hover,
.wp-prompt-pagination-prev:hover,
.wp-prompt-pagination-next:hover {
    background-color: #2271b1;
    color: #fff;
}

.wp-prompt-pagination-number.current {
    background-color: #2271b1;
    color: #fff;
}

.wp-prompt-pagination-ellipsis {
    margin: 0 5px;
}

.wp-prompt-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.wp-prompt-loading {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #555;
}

.wp-prompt-error {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #d63638;
}

.wp-prompt-no-results {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #555;
}

/* Modal Styles */
.wp-prompt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wp-prompt-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wp-prompt-modal {
    background-color: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wp-prompt-modal-overlay.active .wp-prompt-modal {
    transform: translateY(0);
    opacity: 1;
}

.wp-prompt-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.wp-prompt-modal-close:hover {
    color: #d63638;
}

.wp-prompt-modal h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #23282d;
    padding-right: 40px;
}

.wp-prompt-card-full-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    overflow: auto;
    border: 1px solid #eee;
}

.wp-prompt-text {
    font-family: monospace;
    white-space: pre-wrap;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: transparent;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    overflow: auto;
    width: 100%;
}

.wp-prompt-text::before,
.wp-prompt-text::after {
    display: none !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    background: none !important;
    content: none !important;
}

/* Prompt section styling */
.wp-prompt-card-full-content .prompt-section {
    margin-bottom: 25px;
}

.wp-prompt-card-full-content .prompt-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.wp-prompt-card-full-content p {
    margin: 0 0 15px;
    line-height: 1.6;
}

.wp-prompt-card-full-content ul {
    margin: 0 0 15px 20px;
    padding: 0;
}

.wp-prompt-card-full-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.wp-prompt-card-explanation {
    margin-top: 20px;
}

.wp-prompt-card-explanation h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #23282d;
}

.wp-prompt-card-explanation p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Modal actions */
.wp-prompt-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.wp-prompt-copy-button {
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wp-prompt-copy-button:hover {
    background-color: #135e96;
}

.wp-prompt-modal-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-prompt-rating-label,
.wp-prompt-share-label {
    font-size: 14px;
    color: #555;
}

.wp-prompt-share-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-prompt-share-options a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wp-prompt-share-options a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.wp-prompt-share-twitter {
    background-color: #1DA1F2;
}

.wp-prompt-share-facebook {
    background-color: #4267B2;
}

.wp-prompt-share-linkedin {
    background-color: #0077B5;
}

.wp-prompt-share-email {
    background-color: #555;
}

/* Animation for loading */
@keyframes wp-prompt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wp-prompt-loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #999;
    border-radius: 50%;
    animation: wp-prompt-spin 1s linear infinite;
    vertical-align: middle;
}

/* Enhanced Responsive adjustments */
@media (max-width: 1024px) {
    .wp-prompt-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .wp-prompt-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .wp-prompt-title {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .wp-prompt-filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
        margin: 10px 0;
    }
    
    .wp-prompt-search,
    .wp-prompt-category-filter {
        width: 100%;
        min-width: 100%;
    }
    
    .wp-prompt-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .wp-prompt-modal {
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .wp-prompt-modal h2 {
        font-size: 20px;
        padding-right: 30px;
    }
    
    .wp-prompt-card-full-content {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .wp-prompt-modal-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wp-prompt-copy-button {
        width: 100%;
    }
    
    .wp-prompt-modal-rating,
    .wp-prompt-share-options {
        width: 100%;
        justify-content: flex-start;
    }
    
    .wp-prompt-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wp-prompt-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .wp-prompt-card-inner {
        padding: 15px;
    }
    
    .wp-prompt-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .wp-prompt-card-content {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .wp-prompt-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wp-prompt-card-button {
        width: 100%;
        text-align: center;
    }
    
    .wp-prompt-pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .wp-prompt-pagination-number,
    .wp-prompt-pagination-prev,
    .wp-prompt-pagination-next {
        min-width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .wp-prompt-text {
        font-size: 13px;
    }
    
    .wp-prompt-modal-close {
        top: 15px;
        right: 15px;
    }
    
    .wp-prompt-share-options {
        justify-content: space-between;
    }
    
    .wp-prompt-modal {
        padding: 15px;
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    
    .wp-prompt-modal-overlay.active .wp-prompt-modal {
        transform: translateY(0);
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .wp-prompt-card-category {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .wp-prompt-card-title {
        font-size: 15px;
    }
    
    .wp-prompt-card-content {
        font-size: 12px;
    }
    
    .wp-prompt-pagination-number,
    .wp-prompt-pagination-prev,
    .wp-prompt-pagination-next {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .wp-prompt-modal h2 {
        font-size: 18px;
    }
    
    .wp-prompt-text {
        font-size: 12px;
    }
}
