/**
 * Beoordelingen Styling
 * 
 * @package Autodebruin
 */

/* ==========================================================================
   Archive Page Styling
   ========================================================================== */

.beoordelingen-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.beoordelingen-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.beoordelingen-header .page-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Rating Summary */
.rating-summary {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.rating-stars {
    margin: 0.5rem 0;
}

.rating-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.rating-label {
    min-width: 60px;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.rating-count {
    min-width: 30px;
    text-align: right;
}

/* Star Rating Component */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

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

.star.filled {
    color: #fbbf24;
}

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

/* Filters */
.beoordelingen-filters {
    background: #f8fafc;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-options {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

/* Custom Dropdown Styling for Beoordelingen */
.beoordelingen-filters .custom-dropdown {
    position: relative;
    width: 100%;
}

.beoordelingen-filters .custom-dropdown select {
    display: none;
}

.beoordelingen-filters .custom-dropdown-button {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 48px;
    box-sizing: border-box;
}

.beoordelingen-filters .custom-dropdown-button:hover {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.beoordelingen-filters .custom-dropdown-button.active {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.beoordelingen-filters .dropdown-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beoordelingen-filters .dropdown-text.placeholder {
    color: #a0aec0;
}

.beoordelingen-filters .dropdown-arrow {
    margin-left: 12px;
    transition: transform 0.3s ease;
    color: #718096;
    display: flex;
    align-items: center;
}

.beoordelingen-filters .custom-dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.beoordelingen-filters .custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.beoordelingen-filters .custom-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.beoordelingen-filters .custom-dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f7fafc;
    font-size: 14px;
    color: #2d3748;
}

.beoordelingen-filters .custom-dropdown-option:hover {
    background-color: #f7fafc;
}

.beoordelingen-filters .custom-dropdown-option.selected {
    background-color: #3182ce;
    color: #ffffff;
}

.beoordelingen-filters .custom-dropdown-option:last-child {
    border-bottom: none;
}

/* Beoordelingen Grid */
.beoordelingen-content {
    padding: 3rem 0;
}

.beoordelingen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Beoordeling Card */
.beoordeling-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.beoordeling-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviewer-avatar {
    font-size: 2rem;
    color: #6b7280;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #111827;
}

.review-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.verified-badge {
    color: #059669;
    font-weight: 500;
}

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

/* Rating number in header (white) */
.rating-summary .rating-number {
    font-size: 2.5rem;
    color: #ffffff;
    margin-top: 0.25rem;
    font-weight: 700;
    line-height: 1;
}

/* Rating number in other contexts (if any remain) */
.rating-number {
    font-size: 1.9rem;
    color: #374151;
    margin-top: 0.25rem;
    font-weight: 600;
}

.card-content {
    margin-bottom: 1.5rem;
}

.review-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.review-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.review-title a:hover {
    color: #3b82f6;
}

.linked-occasion {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.occasion-label {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.25rem;
}

.occasion-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.occasion-link:hover {
    text-decoration: underline;
}

.review-excerpt {
    color: #4b5563;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.read-more-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #1d4ed8;
}

.helpful-btn {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.helpful-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.helpful-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* No Content Message */
.no-beoordelingen {
    text-align: center;
    padding: 4rem 0;
}

.no-content-message {
    max-width: 500px;
    margin: 0 auto;
}

.no-content-message i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-content-message h2 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 1rem;
}

.no-content-message p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Single Beoordeling Styling
   ========================================================================== */

.beoordeling-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.breadcrumb-container {
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

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

.breadcrumb-separator {
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: #374151;
}

.beoordeling-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.beoordeling-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.beoordeling-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #111827;
}

.reviewer-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.reviewer-name {
    color: #6b7280;
    font-weight: 500;
}

.verified-purchase {
    color: #059669;
    font-weight: 500;
    background: #d1fae5;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

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

.rating-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.linked-occasion {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.linked-occasion h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1rem;
}

.beoordeling-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #374151;
}

.beoordeling-navigation {
    margin: 3rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 300px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-title {
    font-weight: 500;
    color: #111827;
}

.back-to-reviews {
    text-align: center;
    margin-top: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* ==========================================================================
   Process CTA Section - Uses main style.css styling
   ========================================================================== */

/* Process CTA styling is handled by main style.css */

/* ==========================================================================
   Occasions Carousel Section
   ========================================================================== */

.occasions-carousel-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.occasions-carousel-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.occasions-carousel-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.occasions-carousel-section .section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    margin: 0;
}

.occasions-carousel {
    position: relative;
    margin-bottom: 3rem;
}

.carousel-container {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: 0;
}

.occasion-card-small {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.occasion-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.occasion-card-small .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.occasion-card-small .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.occasion-card-small:hover .card-image img {
    transform: scale(1.05);
}

.occasion-card-small .card-content {
    padding: 1.5rem;
}

.occasion-card-small .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.occasion-card-small .card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.occasion-card-small .card-title a:hover {
    color: #3b82f6;
}

.occasion-card-small .card-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.occasion-card-small .spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.occasion-card-small .spec-item i {
    color: #3b82f6;
    width: 16px;
}

.occasion-card-small .card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
    text-align: right;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: all;
    color: #374151;
}

.carousel-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

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

.carousel-btn:disabled:hover {
    background: white;
    color: #374151;
    transform: none;
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-footer {
    text-align: center;
}

.carousel-footer .btn-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.carousel-footer .btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   Pagination Styling
   ========================================================================== */

.pagination-container {
    margin: 3rem 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

/* WordPress pagination wrapper */
.pagination-container .nav-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.pagination .page-numbers.current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    cursor: default;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0 1.5rem;
    font-weight: 600;
}

.pagination .page-numbers.prev i,
.pagination .page-numbers.next i {
    margin: 0 0.5rem;
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
    color: #9ca3af;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .beoordelingen-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rating-summary {
        flex-direction: column;
        gap: 2rem;
    }

    .filter-options {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
    }

    .beoordelingen-filters .custom-dropdown-button {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px; /* Better touch target */
    }

    .beoordelingen-filters .custom-dropdown-menu {
        max-height: 250px; /* Smaller on mobile */
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .rating-display {
        text-align: left;
    }
    
    .beoordeling-meta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .reviewer-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .beoordeling-single {
        padding: 1rem;
    }
    
    .beoordelingen-header .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Process CTA responsive - handled by main style.css */

    /* Occasions carousel responsive */
    .occasions-carousel-section {
        padding: 3rem 0;
    }

    .occasions-carousel-section .section-header h2 {
        font-size: 2rem;
    }

    .carousel-slide {
        flex: 0 0 calc(100% - 2rem);
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    /* Mobile pagination styling */
    .pagination-container {
        margin: 2rem 0;
        text-align: center;
    }

    .pagination,
    .pagination .nav-links {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .pagination .page-numbers {
        min-width: 44px;
        height: 44px;
        padding: 0 0.75rem;
        font-size: 14px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        min-width: auto;
        padding: 0 1rem;
        background: #3b82f6;
        border-color: #3b82f6;
        color: #ffffff;
        font-weight: 700;
    }

    .pagination .page-numbers.prev:hover,
    .pagination .page-numbers.next:hover {
        background: #2563eb;
        border-color: #2563eb;
    }

    /* Stack pagination on very small screens */
    @media (max-width: 480px) {
        .pagination-container {
            margin: 2rem 0;
        }

        .pagination,
        .pagination .nav-links {
            display: flex !important;
            flex-direction: row !important;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            width: 100%;
        }

        .pagination .page-numbers {
            min-width: 40px;
            height: 40px;
            padding: 0 0.5rem;
            font-size: 14px;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
        }

        .pagination .page-numbers.prev,
        .pagination .page-numbers.next {
            min-width: auto;
            padding: 0 0.75rem;
            font-size: 13px;
        }

        .pagination .page-numbers.dots {
            min-width: 20px;
            padding: 0;
        }
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 1rem);
    }
}
