/* Reviews Page Styles */

/* Page Header */
.page-header {
    background-color: #186b8b;
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Search & Filter Section */
.search-filter {
    background-color: #e4ecf8;
    padding: 20px 0;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    flex-direction: column;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color:  #070707;
}

.filter-group select {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: var(--white);
    font-size: 14px;
}

/* Results Info */
.results-info {
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-size: 14px;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.review-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0px;
    border-bottom: 1px solid var(--light-gray);
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
}

.reviewer-info {
    display: flex;
    align-items: center;
	margin-top:10px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-right: 15px;
    margin-left: 8px;	
}

.reviewer-details h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: black;
}

.review-date {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.review-network {
    display: flex;
    align-items: center;
}

.review-network a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.review-network-logo {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    object-fit: contain;
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stars {
    color: var(--warning-color);
    font-size: 18px;
}

.review-content {
    padding: 10px;
}

.review-content h3 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.review-content p {
    margin-bottom: 20px;
    line-height: 1.2;
    color: #0c0c0c;
}

.review-pros-cons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.review-pros, .review-cons {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border-radius: var(--border-radius);
}

.review-pros {
    background-color: var(--light-success);
}

.review-cons {
    background-color: var(--light-danger);
}

.review-pros h4, .review-cons h4 {
    display: flex;
    align-items: center;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.review-pros h4 {
    color: var(--success-color);
}

.review-cons h4 {
    color: var(--danger-color);
}

.review-pros h4 i, .review-cons h4 i {
    margin-right: 8px;
}

.review-pros p, .review-cons p {
    margin: 0;
    font-size: 14px;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
}

.review-helpful {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.review-helpful span {
    margin-right: 5px;
    font-size: 14px;
    color: var(--dark-gray);
}

.helpful-btn, .unhelpful-btn {
    background: none;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.helpful-btn i, .unhelpful-btn i {
    margin-right: 5px;
}

.helpful-btn:hover, .unhelpful-btn:hover {
    background-color: var(--medium-gray);
}

.helpful-btn.voted {
    background-color: var(--light-success);
    border-color: var(--success-color);
    color: var(--success-color);
}

.unhelpful-btn.voted {
    background-color: var(--light-danger);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.helpful-btn:disabled, .unhelpful-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vote-message {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.vote-message.fade-out {
    opacity: 0;
}

.vote-message-success {
    background-color: var(--light-success);
    color: var(--success-color);
}

.vote-message-error {
    background-color: var(--light-danger);
    color: var(--danger-color);
}

/* Login Prompt Styles */
.login-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-prompt-modal {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--box-shadow);
}

.login-prompt-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.login-prompt-modal p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.login-prompt-actions {
    display: flex;
    gap: 10px;
}

.voting {
    position: relative;
}

.voting i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.review-report {
    font-size: 14px;
    color: var(--dark-gray);
    text-decoration: none;
}

.review-report:hover {
    text-decoration: underline;
    color: var(--danger-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    margin: 0 5px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.pagination-link:hover {
    background-color: var(--light-gray);
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Network Summary (for network-specific reviews) */
.network-summary {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.network-summary-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.network-summary-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.network-summary-info {
    flex-grow: 1;
}

.network-summary-info h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
}

.network-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.network-summary-meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #1c1b1b;;
}

.network-summary-meta-item i {
    margin-right: 5px;
    color: var(--primary-color);
}

.network-summary-rating {
    display: flex;
    align-items: center;
}

.network-summary-rating .stars {
    margin-right: 10px;
}

.network-summary-rating-text {
    font-size: 14px;
    font-weight: 500;
}

.network-summary-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* No Reviews */
.no-reviews {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.no-reviews p {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-top: 40px;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .review-header {
        flex-direction: column;
    }

    .review-rating {
        align-items: flex-start;
        margin-top: 15px;
    }

    .review-pros-cons {
        flex-direction: column;
    }

    .review-footer {
        flex-direction: column;
        gap: 15px;
    }

    .network-summary {
        flex-direction: column;
        text-align: center;
    }

    .network-summary-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .network-summary-meta {
        justify-content: center;
    }
}

/* Add formatDate function helper */
.review-date {
    color: #3b3a3a;
    font-size: 14px;
}

/* Add displayStarRating function helper */
.stars {
    color: var(--warning-color);
}

.stars i {
    margin-right: 2px;
}

/* Advertisement Styles */
.content-with-ads {
    display: flex;
    gap: 20px;
    position: relative;
}

.reviews-list-container {
    flex: 1;
    min-width: 0; /* Ensures content can shrink below its minimum content size */
}

.ad-sidebar {
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.ad-sidebar-left {
    order: -1;
}

.ad-sidebar-right {
    order: 1;
}

.ad-container {
    margin: 20px 0;
    text-align: center;
}

.ad {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    font-size: 14px;
    text-align: center;
}

.ad-placeholder-text {
    padding: 10px;
}

/* Ad Sizes */
.ad-leaderboard {
    width: 728px;
    height: 90px;
    max-width: 100%;
    margin: 0 auto;
}

.ad-large-skyscraper {
    width: 160px;
    height: 600px;
}

.ad-medium-rectangle {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.ad-small-square {
    width: 200px;
    height: 200px;
    max-width: 100%;
}

/* Responsive Ad Adjustments */
@media (max-width: 1200px) {
    .content-with-ads {
        flex-direction: column;
    }

    .ad-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        position: static;
    }

    .ad-sidebar-left {
        order: 1;
        margin-top: 20px;
    }

    .ad-sidebar-right {
        order: 2;
        margin-top: 0;
    }

    .ad-large-skyscraper {
        width: 300px;
        height: 600px;
    }
}