/* =====================================================
   BOLLARD FEEDBACK PAGE STYLES
   Modern, responsive design with animations
   ===================================================== */

/* =====================================================
   HERO SECTION & STATISTICS
   ===================================================== */

.feedback-hero {
    background: #3A84C5;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.feedback-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Statistics Overview */
.stats-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.main-rating {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #EE7527, #EE7527);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.rating-stars {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #EE7527;
}

.rating-stars i {
    margin: 0 2px;
    animation: starGlow 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

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

/* Rating Distribution */
.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

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

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

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #EE7527, #EE7527);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
    animation: fillBar 1.5s ease-out forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.rating-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
}

.trust-badge i {
    font-size: 1.2rem;
    color: #EE7527;
}

/* =====================================================
   FEATURED REVIEWS CAROUSEL
   ===================================================== */

.featured-reviews {
    padding: 80px 0;
    background: #DEE2E5;
}

.featured-reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 3rem;
}

.featured-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    scroll-behavior: smooth;
}

.featured-review-card {
    min-width: 400px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.featured-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #3A84C5;
    font-family: serif;
    line-height: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3A84C5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.client-info h4 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}

.client-info .course-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #EE7527;
    font-size: 1.1rem;
}

.rating-value {
    font-weight: 600;
    color: #1e293b;
}

.review-content h5 {
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.review-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-date {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A84C5;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #2F6FA6;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

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

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

/* =====================================================
   REVIEWS SECTION
   ===================================================== */

.reviews-section {
    padding: 80px 0;
    background: white;
}

.reviews-header {
    margin-bottom: 3rem;
}

.reviews-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

/* Controls */
.reviews-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3A84C5;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3A84C5;
}

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

.review-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #3A84C5;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.review-card:hover::before {
    transform: scaleX(1);
}

.review-card .review-header {
    margin-bottom: 1rem;
}

.review-card .client-avatar {
    width: 50px;
    height: 50px;
    font-size: 1rem;
}

.review-card .review-rating {
    margin-bottom: 0.8rem;
}

.review-card .review-content h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.review-card .review-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Review Actions */
.review-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.helpful-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: #DEE2E5;
    color: #3A84C5;
}

.helpful-btn.active {
    color: #3A84C5;
    background: #eff6ff;
}

.share-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #DEE2E5;
    color: #3A84C5;
}

/* Admin Response */
.admin-response {
    margin-top: 1rem;
    padding: 1rem;
    background: #DEE2E5;
    border-left: 4px solid #3A84C5;
    border-radius: 0 8px 8px 0;
}

.admin-response .response-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #3A84C5;
    font-size: 0.9rem;
}

.admin-response .response-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    background: #3A84C5;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: #2F6FA6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* =====================================================
   WRITE REVIEW CTA
   ===================================================== */

.write-review-cta {
    background: #3A84C5;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3A84C5;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #2F6FA6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* =====================================================
   LOADING STATES
   ===================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: #3b82f6;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.1rem;
    color: #64748b;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.skeleton-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-info {
    flex: 1;
}

.skeleton-name {
    height: 16px;
    width: 120px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-course {
    height: 12px;
    width: 80px;
    border-radius: 4px;
}

.skeleton-rating {
    height: 16px;
    width: 100px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-title {
    height: 18px;
    width: 80%;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 60%;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes starGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--percentage);
    }
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* =====================================================
   ADMIN-SPECIFIC STYLES
   ===================================================== */

.reviews-table-wrapper {
    overflow-x: auto;
}

.reviews-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.reviews-table thead {
    background: #DEE2E5;
}

.reviews-table th,
.reviews-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.pagination-container-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

.pagination-info-admin {
    color: #6b7280;
    font-size: 0.875rem;
}

.modal-rating-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.star-rating-input {
    display: flex;
    gap: 0.25rem;
    cursor: pointer;
}

.star-rating-input .fa-star {
    color: #EE7527;
    font-size: 1.5rem;
}

.rating-value-input {
    width: 80px;
}

.rating-value-display {
    font-weight: 600;
    color: #1e3a8a;
}

.modal-checkbox-row {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.modal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.response-review-preview {
    background: #DEE2E5;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.response-review-title {
    margin: 0 0 0.5rem 0;
    color: #1e3a8a;
}

.response-review-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.response-review-text {
    margin: 0;
    color: #374151;
}


/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .rating-distribution {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .featured-review-card {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .feedback-hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .reviews-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-review-card {
        min-width: 300px;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .carousel-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    
    .featured-review-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .rating-number {
        font-size: 3rem;
    }
    
    .main-rating {
        padding: 1.5rem;
    }
    
    .featured-review-card,
    .review-card {
        padding: 1rem;
    }
    
    .reviews-section,
    .featured-reviews {
        padding: 60px 0;
    }
    
    .write-review-cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}
