/**
 * Review Components CSS
 * Styling for review integration system
 * Matches Tapetes Teherán gold/black theme
 */

/* Review Section Base Styles */
.reviews-section {
    margin: 40px auto 60px auto !important;
    padding: 30px 20px 60px 20px !important;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 15px;
    position: relative;
    overflow: visible !important;
    z-index: 1;
    max-width: 1300px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Force override WordPress layout constraints */
.is-layout-constrained > .reviews-section,
:where(.is-layout-constrained) > .reviews-section {
    max-width: 1300px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFEB3B, #FFEB3B, #FFEB3B); /* Gold gradient */
}

/* Review Header */
.reviews-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.reviews-header h2 {
    color: #FFEB3B; /* Gold accent */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.stars {
    font-size: 2rem;
    color: #FFEB3B; /* Gold for stars */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.rating-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

/* Review Container */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Review Card */
.review-card {
    background: rgba(255, 235, 59, 0.05); /* Gold tint */
    border: 1px solid rgba(255, 235, 59, 0.3); /* Gold border */
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 235, 59, 0.6); /* Brighter gold on hover */
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.3); /* Gold shadow */
}

.review-card.google {
    border-left: 4px solid #FFEB3B;
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFEB3B; /* Gold accent */
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.platform-icon {
    font-size: 1.1rem;
}

.platform-name {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-rating {
    font-size: 1.2rem;
    color: #FFEB3B; /* Gold for ratings */
}

/* Review Content */
.review-content {
    margin-bottom: 20px;
}

.review-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    font-family: var(--font-secondary, "Roboto Serif", serif);
}

/* Review Footer */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 235, 59, 0.2); /* Gold border */
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reviewer-name {
    color: #FFEB3B; /* Gold accent */
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.reviewer-location {
    color: #cccccc;
    font-size: 0.85rem;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.review-date {
    color: #aaaaaa;
    font-size: 0.85rem;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

/* Fade Slider */
.reviews-slider-main {
    position: relative;
    margin: 30px auto !important;
    max-width: 1200px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.slider-container {
    position: relative;
    width: 100% !important;
    min-height: 400px;
    margin: 0 auto !important;
    margin-bottom: 40px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Fade Slides */
.reviews-fade-slide {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    min-height: 0;
}

.reviews-fade-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns for desktop */
    gap: 20px;
    padding: 20px !important;
    margin: 0 auto !important;
    margin-bottom: 20px !important;
    max-width: 1200px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0;
    overflow: visible !important;
}

.reviews-grid > * {
    min-width: 0;
    max-width: 100%;
}

.reviews-grid .review-card {
    flex: none;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    min-height: 180px;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.reviews-grid .review-card.empty {
    background: transparent;
    border: none;
    visibility: hidden;
}

/* Pagination */
.reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
}

.pagination-btn {
    background: rgba(255, 235, 59, 0.1); /* Gold background */
    border: 1px solid #FFEB3B; /* Gold border */
    color: #FFEB3B; /* Gold text */
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.pagination-btn:hover {
    background: rgba(255, 235, 59, 0.2); /* Brighter gold on hover */
    transform: translateY(-1px);
}

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

.pagination-info {
    color: #FFEB3B; /* Gold text */
    font-size: 0.9rem;
    margin: 0 15px;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    .reviews-section {
        padding: 20px 15px 60px 15px !important;
        margin: 30px auto 100px auto !important;
    }
}

/* Search Box */
.review-search {
    background: rgba(255, 235, 59, 0.05); /* Gold tint */
    border: 1px solid rgba(255, 235, 59, 0.3); /* Gold border */
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    width: 300px;
    max-width: 100%;
    font-size: 1rem;
    margin: 20px auto;
    display: block;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.review-search::placeholder {
    color: #aaaaaa;
}

.review-search:focus {
    outline: none;
    border-color: #FFEB3B; /* Gold border on focus */
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.4); /* Gold glow */
}

/* No Reviews Message */
.no-reviews {
    text-align: center;
    color: #aaaaaa;
    font-style: italic;
    padding: 40px 20px;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-header h2 {
        font-size: 2rem;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-search {
        width: calc(100% - 30px);
        margin: 15px;
    }
    
    .rating-summary {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        margin: 20px 0 60px 0 !important;
        padding: 20px 0 60px 0 !important;
    }
    
    .reviews-header h2 {
        font-size: 1.8rem;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Review Modal Styles */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Black overlay */
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal.active {
    display: flex;
}

.review-modal-content {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); /* Black gradient */
    border: 2px solid rgba(255, 235, 59, 0.4); /* Gold border */
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 235, 59, 0.2); /* Gold border */
}

.review-modal-title {
    color: #FFEB3B;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.review-modal-close {
    background: rgba(255, 235, 59, 0.2); /* Gold background */
    border: 1px solid rgba(255, 235, 59, 0.4); /* Gold border */
    color: #ffffff; /* White text */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.review-modal-close:hover {
    background: rgba(255, 235, 59, 0.3); /* Gold hover */
    transform: scale(1.1);
}

.review-modal-text {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 20px 0;
    font-family: var(--font-secondary, "Roboto Serif", serif);
}

.review-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 235, 59, 0.2); /* Gold border */
}

.review-modal-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFEB3B;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.review-modal-rating {
    color: #FFEB3B;
    font-size: 1.2rem;
}

/* Read More Button */
.read-more-btn {
    background: rgba(255, 235, 59, 0.1);
    border: 1px solid rgba(255, 235, 59, 0.3);
    color: #FFEB3B;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: inline-block;
    font-family: var(--font-primary, "Outfit", sans-serif);
}

.read-more-btn:hover {
    background: rgba(255, 235, 59, 0.2);
    transform: translateY(-1px);
}

