/* Trustpilot-Inspired Business Profile Styles */
/* Based on https://www.trustpilot.com/review/www.acitydiscount.com */

/* Reset and Base Styles */
.business-profile.trustpilot-style {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #191919;
    background: #ffffff;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.business-profile.trustpilot-style * {
    box-sizing: border-box;
}

/* Trustpilot Navigation */
.trustpilot-nav {
    background: #f7f8fc;
    padding: 12px 24px;
    border-bottom: 1px solid #e6e8ec;
    display: none;
}

.nav-breadcrumb {
    font-size: 14px;
    color: #5a5a5a;
}

.nav-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.nav-breadcrumb a:hover {
    text-decoration: underline;
}

/* Trustpilot Header Section */
.trustpilot-header {
    background: #ffffff;
    padding: 32px 24px;
    border-bottom: 1px solid #e6e8ec;
}

.header-top {
    margin-bottom: 24px;
}

.business-summary {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.summary-left {
    flex-shrink: 0;
}

.summary-right {
    flex: 1;
}

/* Verification Badge */
.verification-badge {
    margin-bottom: 8px;
}

.verification-badge .verified {
    color: #00b67a;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verification-badge .unverified {
    color: #ff6d70;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Business Title */
.business-title {
    font-size: 38px;
    font-weight: 700;
    color: #191919;
    line-height: 1.1;
    margin: 0 0 0 0;
}

/* TrustScore Section */
.trustscore-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0px;
}

.trustscore-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;

    border-radius: 8px;
   
}

.trustscore-number {
    font-size: 24px;
    font-weight: 700;
    color: #191919;
}

.trustscore-text {
    font-size: 14px;
    color: #5a5a5a;
    font-weight: 500;
}

.trustscore-stars {
    display: flex;
    gap: 2px;
}

.trustscore-stars .star.filled {
    color: #FF9800;
    font-size: 20px;
}

.trustscore-stars .star.empty {
    color: #ddd;
    font-size: 20px;
}

.trustscore-rating {
    font-size: 14px;
    color: #5a5a5a;
}

/* TrustScore Label */
.trustscore-label {
    display: flex;
    align-items: center;
}

.trustscore-label .excellent {
    background: #00b67a;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.trustscore-label .great {
    background: #73cf11;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.trustscore-label .good {
    background: #ffb400;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.trustscore-label .average {
    background: #ff8622;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.trustscore-label .poor {
    background: #ff3722;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

/* Business Category */
.business-category {
    font-size: 16px;
    color: #5a5a5a;
    font-weight: 500;
}

/* Business Logo */
.business-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f8fc;
    border: 1px solid #e6e8ec;
}

.business-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-logo .default-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #5a5a5a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #0066cc;
    border-radius: 80px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.write-review-btn {
    background: #0066cc;
    color: white;
    border-radius: 80px;
}

.write-review-btn:hover {
    background: #0052a3;
    color: white;
}

.visit-website-btn {
    background: white;
    color: #0066cc;
}

.visit-website-btn:hover {
    background: #f7f8fc;
    color: #0052a3;
    width: auto;
	border-radius: 80px;
}

/* Reviews Section */
.trustpilot-reviews {
    padding: 32px 24px;
    background: #ffffff;
}

.review-summary-header {
    margin-bottom: 32px;
}

.review-summary-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #191919;
    margin: 0 0 16px 0;
}

.summary-stats {
    background: #f7f8fc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e6e8ec;
}

.rating-breakdown .rating-text {
    font-size: 16px;
    line-height: 1.5;
    color: #191919;
    margin-bottom: 8px;
}

.ai-note {
    font-size: 12px;
    color: #5a5a5a;
    font-style: italic;
}

/* Reviews Container */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Trustpilot Review Cards */
.trustpilot-review-card {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.trustpilot-review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0066cc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 2px;
}

.review-date {
    font-size: 12px;
    color: #5a5a5a;
}

.review-rating {
    text-align: right;
}

.rating-text {
    font-size: 12px;
    color: #5a5a5a;
}

/* Review Stars */
.review-stars {
    margin-bottom: 12px;
}

.review-stars .star.filled {
    color: #FF9800;
    font-size: 16px;
    margin-right: 2px;
}

.review-stars .star.empty {
    color: #ddd;
    font-size: 16px;
    margin-right: 2px;
}

/* Review Content */
.review-content {
    margin-top: 12px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Detailed Ratings */
.detailed-ratings {
    margin: 10px 0;
    padding: 10px;
    background-color: #f7f8fc;
    border-radius: 6px;
}

.detailed-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.rating-category-label {
    font-size: 12px;
    font-weight: 600;
    color: #5a5a5a;
}

.mini-star {
    font-size: 12px;
    margin-right: 1px;
}

.mini-star.filled {
    color: #FF9800;
}

.mini-star.empty {
    color: #ddd;
}

.review-text {
    font-size: 14px;
    color: #191919;
    line-height: 1.5;
    margin-bottom: 12px;
}

.read-more {
    color: #0066cc;
    cursor: pointer;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.review-date-experience {
    font-size: 12px;
    color: #5a5a5a;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    display: none;
}

/* No Reviews State */
.no-reviews-trustpilot {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-reviews-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-reviews-trustpilot h3 {
    font-size: 24px;
    font-weight: 600;
    color: #191919;
    margin: 0 0 8px 0;
}

.no-reviews-trustpilot p {
    font-size: 16px;
    color: #5a5a5a;
    margin: 0;
}

/* See All Reviews Button */
.see-all-reviews-trustpilot {
    text-align: center;
    margin-bottom: 40px;
}

.see-all-btn-trustpilot {
    background: white;
    border: 1px solid #0066cc;
    color: #0066cc;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.see-all-btn-trustpilot:hover {
    background: #f7f8fc;
}

/* Company Details Section */
.company-details-section {
    padding: 32px 24px;
   
    border-top: 1px solid #e6e8ec;
}

.company-details-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #191919;
    margin: 0 0 24px 0;
}

.company-description {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e6e8ec;
}

.company-description h3 {
    font-size: 16px;
    font-weight: 600;
    color: #5a5a5a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-content {
    font-size: 14px;
    line-height: 1.6;
    color: #191919;
}

/* Contact Info Section */
.contact-info-section {
    padding: 32px 24px;
    background: #ffffff;
    border-top: 1px solid #e6e8ec;
}

.contact-info-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #191919;
    margin: 0 0 24px 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px;
    background: unset;
    border-radius: 6px;
}

.contact-icon {
    width: 20px;
    text-align: center;
    color: #5a5a5a;
}

.contact-item a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Review Form Styling */
#review-form-container {
    background: white;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e6e8ec;
    margin-top: 32px;
}

#review-form-container h3 {
    font-size: 24px;
    font-weight: 700;
    color: #191919;
    margin: 0 0 24px 0;
}

.rating-categories {
    margin-bottom: 30px;
}

.rating-category {
    margin-bottom: 15px;
}

.review-form .rating-select {
    margin-bottom: 10px;
}

.rating-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #191919;
}

.rating-select .star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    margin-right: 4px;
    transition: color 0.2s ease;
}

.rating-select .star.hover,
.rating-select .star.selected {
    color: #00b67a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #191919;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6e8ec;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

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

.submit-review-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-review-btn:hover {
    background: #0052a3;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trustpilot-review-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.rating-select .star.hover {
    color: #00b67a !important;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Star rating hover effects */
.rating-select .star {
    transition: all 0.2s ease;
}

.rating-select .star:hover {
    transform: scale(1.1);
}

/* Review card hover effects */
.trustpilot-review-card {
    transition: all 0.3s ease;
}

.trustpilot-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Button hover animations */
.action-btn {
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .business-summary {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .summary-left {
        order: 1;
        align-self: center;
    }
    
    .summary-right {
        order: 2;
        text-align: center;
        width: 100%;
    }
    
    .business-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .trustscore-section {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin: 10px 0;
    }
    
    .trustscore-badge {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 10px;
        width: 100%;
    }
    
    .trustscore-stars {
        justify-content: center;
    }
    
    .trustscore-label {
        justify-content: center;
    }
    
    .business-category {
        padding: 0 10px;
        word-wrap: break-word;
        font-size: 14px;
        margin-top: 10px;
    }
    
    .verification-badge {
        justify-content: center;
        display: flex;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }
    
    .trustpilot-header,
    .trustpilot-reviews,
    .company-details-section,
    .contact-info-section {
        padding: 20px 16px;
    }
    
    .business-logo {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .header-top {
        margin-bottom: 15px;
    }
    
    .business-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .trustscore-number {
        font-size: 20px;
    }
    
    .trustscore-stars .star.filled,
    .trustscore-stars .star.empty {
        font-size: 18px;
    }
    
    .trustscore-label .excellent,
    .trustscore-label .great,
    .trustscore-label .good,
    .trustscore-label .average,
    .trustscore-label .poor {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .business-category {
        font-size: 13px;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        justify-content: center;
    }
    
    .header-actions {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .business-title {
        font-size: 22px;
    }
    
    .trustpilot-nav {
        padding: 8px 16px;
    }
    
    .nav-breadcrumb {
        font-size: 12px;
    }
    
    .business-logo {
        width: 60px;
        height: 60px;
    }
    
    .business-logo .default-logo {
        font-size: 20px;
    }
    
    .verification-badge .verified,
    .verification-badge .unverified {
        font-size: 12px;
    }
    
    .trustscore-text, .trustscore-rating {
        font-size: 12px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
    }
}
