/* MannaPress Guesty Reviews Plugin Styles */

#guesty-reviews {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* Plugin Header */
.guesty-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.guesty-reviews-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guesty-reviews-title::before {
    content: "⭐";
    font-size: 20px;
}

/* Powered By Section */
.guesty-powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.guesty-powered-by::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guesty-powered-by:hover::before {
    opacity: 1;
}

.guesty-powered-by-text {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.guesty-powered-by-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.guesty-powered-by-logo {
    height: 18px !important;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: grayscale(0.2);
    max-width: 50px;
    object-fit: contain;
    border-radius: 2px;
    padding: 1px;
}

.guesty-powered-by-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Force consistent logo sizing for powered by section */
.guesty-powered-by-logos img {
    height: 18px !important;
    max-width: 50px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Legacy support for old class names */
.guesty-reviews-provided-by {
    display: none;
}

.guesty-reviews-logos {
    display: none;
}

.guesty-review-logo {
    display: none;
}

/* Reviews Content Area */
.guesty-reviews-content {
    position: relative;
    z-index: 1;
}

/* Hide any plugin badges */
.guesty-plugin-badge,
[class*="plugin-badge"],
[class*="badge"] {
    display: none !important;
}

/* Individual Review Styles */
.review {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.review:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.review h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.review p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #374151;
}

.review p:last-child {
    margin-bottom: 0;
}

.review strong {
    color: #1f2937;
    font-weight: 600;
}

/* Rating Stars */
.review-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-rating .stars {
    color: #fbbf24;
}

/* Host Response */
.host-response {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.host-response::before {
    content: "🏠";
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
}

.host-response strong {
    color: #0369a1;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.host-response p {
    color: #0c4a6e;
    font-style: italic;
    margin: 0;
}

/* Separator */
.review + hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 24px 0;
}

/* Loading State */
#guesty-reviews:empty::after {
    content: "Loading reviews...";
    display: block;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
}

/* No Reviews State */
.guesty-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
}

/* Error State */
.guesty-error {
    text-align: center;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    #guesty-reviews {
        padding: 16px;
        margin: 0 8px;
    }
    
    .guesty-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .guesty-powered-by {
        align-self: flex-end;
        padding: 6px 12px;
    }
    
    .guesty-powered-by-text {
        font-size: 10px;
    }
    
    .guesty-powered-by-logos {
        gap: 6px;
    }
    
    .guesty-powered-by-logo {
        height: 16px !important;
        max-width: 40px !important;
    }
    
    .guesty-powered-by-logos img {
        height: 16px !important;
        max-width: 40px !important;
    }
    
    .review {
        padding: 16px;
    }
    
    .guesty-reviews-title {
        font-size: 20px;
    }
}

/* Plugin Branding */
.guesty-reviews-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

.guesty-reviews-footer a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.guesty-reviews-footer a:hover {
    color: #374151;
    text-decoration: underline;
}

/* Plugin Container Enhancements */
#guesty-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #059669, #0d9488, #0891b2, #7c3aed, #ec4899);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add subtle plugin branding */
#guesty-reviews::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #059669, #7c3aed);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Enhanced Loading State */
.guesty-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
    position: relative;
}

.guesty-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #059669;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

/* Enhanced Review Cards */
.review {
    position: relative;
    overflow: hidden;
}

.review::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #059669, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review:hover::before {
    opacity: 1;
}

/* Star Rating Enhancement */
.review-rating .stars {
    font-size: 16px;
    letter-spacing: 2px;
}

/* Logo Hover Effects */
.guesty-review-logo {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px;
}

.guesty-review-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* Pagination Styles */
.guesty-reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.guesty-pagination-btn {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.guesty-pagination-btn:hover:not(:disabled) {
    background: #059669;
    color: white;
    border-color: #059669;
}

.guesty-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guesty-pagination-btn.active {
    background: #059669;
    color: white;
    border-color: #059669;
}

.guesty-pagination-info {
    color: #6b7280;
    font-size: 14px;
    margin: 0 16px;
}

.guesty-pagination-dots {
    color: #9ca3af;
    font-size: 14px;
    padding: 0 4px;
}

/* Enhanced Responsive Design */
@media (max-width: 480px) {
    #guesty-reviews {
        padding: 12px;
        margin: 0 4px;
    }
    
    .guesty-reviews-title {
        font-size: 18px;
    }
    
    .guesty-powered-by {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .guesty-powered-by-text {
        font-size: 9px;
    }
    
    .guesty-powered-by-logos {
        gap: 4px;
    }
    
    .guesty-powered-by-logo {
        height: 14px !important;
        max-width: 35px !important;
    }
    
    .guesty-powered-by-logos img {
        height: 14px !important;
        max-width: 35px !important;
    }
    
    .review {
        padding: 12px;
    }
    
    .review h4 {
        font-size: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #guesty-reviews {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .review {
        background: #111827;
        border-color: #374151;
    }
    
    .review h4 {
        color: #f9fafb;
    }
    
    .review p {
        color: #d1d5db;
    }
    
    .host-response {
        background: #1e3a8a;
        border-color: #3b82f6;
    }
    
    .host-response p {
        color: #bfdbfe;
    }
}
