/* WP Travel Engine Custom Reviews - Two Column Layout */

:root {
    --wte-primary: #FF6B35;
    --wte-primary-dark: #E85A2A;
    --wte-secondary: #1A2332;
    --wte-text: #2D3748;
    --wte-text-light: #718096;
    --wte-border: #E2E8F0;
    --wte-bg: #FFFFFF;
    --wte-bg-light: #F7FAFC;
    --wte-star: #FDB241;
    --wte-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --wte-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wte-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Two Column Layout */
.wte-reviews-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Section - Summary */
.wte-reviews-left-section {
    position: sticky;
    top: 20px;
}

.wte-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--wte-secondary);
    margin: 0 0 24px;
    line-height: 1.2;
}

.wte-rating-summary {
    background: var(--wte-bg-light);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
}

.rating-number-large {
    font-size: 72px;
    font-weight: 700;
    color: var(--wte-secondary);
    line-height: 1;
    margin-bottom: 16px;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.rating-stars-large .stars {
    display: flex;
    gap: 6px;
    justify-content: center;
    font-size: 24px;
}

.rating-text {
    font-size: 15px;
    color: var(--wte-text-light);
    margin: 0;
    font-weight: 500;
}

.wte-write-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--wte-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--wte-shadow);
}

.wte-write-review-btn:hover {
    background: var(--wte-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--wte-shadow-lg);
}

/* Right Section - Reviews List */
.wte-reviews-right-section {
    min-height: 400px;
}

.wte-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wte-review-item {
    background: var(--wte-bg);
    border: 1px solid var(--wte-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.wte-review-item:hover {
    box-shadow: var(--wte-shadow-lg);
    transform: translateY(-2px);
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wte-primary), var(--wte-primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--wte-secondary);
    margin: 0 0 4px;
}

.review-date {
    font-size: 13px;
    color: var(--wte-text-light);
    margin: 0;
}

.review-rating {
    flex-shrink: 0;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--wte-secondary);
    margin: 0 0 12px;
}

.review-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--wte-text);
}

.review-content p {
    margin: 0 0 12px;
}

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

/* Stars */
.stars {
    display: inline-flex;
    gap: 3px;
    font-size: 18px;
}

.star {
    color: #E2E8F0;
    transition: color 0.2s ease;
}

.star.filled {
    color: var(--wte-star);
}

.star.half {
    background: linear-gradient(90deg, var(--wte-star) 50%, #E2E8F0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Load More Button */
.wte-load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    margin-top: 24px;
    background: var(--wte-bg);
    color: var(--wte-primary);
    border: 2px solid var(--wte-primary);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wte-load-more-btn:hover {
    background: var(--wte-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--wte-shadow);
}

/* No Reviews */
.wte-no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: var(--wte-bg-light);
    border-radius: 16px;
}

.wte-no-reviews p {
    font-size: 16px;
    color: var(--wte-text-light);
    margin: 0;
}

/* Modal Styles */
.wte-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.wte-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wte-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--wte-shadow-lg);
    animation: slideUp 0.3s ease;
}

.wte-modal-large {
    max-width: 900px;
}

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

.modal-header-sticky {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--wte-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-sticky h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--wte-secondary);
}

.all-reviews-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wte-modal-close {
    background: var(--wte-bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wte-modal-close:hover {
    background: var(--wte-border);
    transform: rotate(90deg);
}

.wte-modal-content:not(.wte-modal-large) .wte-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.wte-modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--wte-secondary);
    margin: 0 0 30px;
}

/* Review Form */
.wte-review-form .form-group {
    margin-bottom: 24px;
}

.wte-review-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wte-secondary);
    margin-bottom: 8px;
}

.wte-review-form input[type="text"],
.wte-review-form input[type="email"],
.wte-review-form input[type="url"],
.wte-review-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--wte-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--wte-text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.wte-review-form input:focus,
.wte-review-form textarea:focus {
    outline: none;
    border-color: var(--wte-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wte-review-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: 8px;
    font-size: 32px;
    margin-top: 8px;
}

.rating-input .star {
    color: #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.rating-input .star:hover,
.rating-input .star.active {
    color: var(--wte-star);
    transform: scale(1.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--wte-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--wte-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--wte-shadow);
}

.btn-secondary {
    background: var(--wte-bg-light);
    color: var(--wte-text);
}

.btn-secondary:hover {
    background: var(--wte-border);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Form Message */
.form-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    display: block;
}

.form-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .wte-reviews-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .wte-reviews-left-section {
        position: static;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 24px;
        align-items: center;
    }
    
    .wte-section-title {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
    
    .wte-rating-summary {
        margin-bottom: 0;
    }
    
    .wte-write-review-btn {
        width: auto;
        padding: 14px 28px;
    }
}

@media (max-width: 768px) {
    .wte-reviews-container {
        padding: 30px 15px;
    }
    
    .wte-reviews-left-section {
        grid-template-columns: 1fr;
    }
    
    .wte-section-title {
        font-size: 28px;
    }
    
    .rating-number-large {
        font-size: 56px;
    }
    
    .wte-rating-summary {
        padding: 24px;
    }
    
    .wte-write-review-btn {
        width: 100%;
    }
    
    .wte-review-item {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .wte-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .wte-modal-content h2 {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-header-sticky h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .rating-number-large {
        font-size: 48px;
    }
}