/* Testimonial Detail Page Styles */
.testimonial-page {
    font-family: "Poppins", sans-serif;
    background: var(--color-background);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.testimonial-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

html[data-theme="dark"] .testimonial-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-rating {
    margin-bottom: 2rem;
}

.stars {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.rating-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.hero-quote {
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 3rem 0;
    font-style: italic;
    quotes: '"' '"' '' ' ' '';
}

.hero-quote::before {
    content: open-quote;
}

.hero-quote::after {
    content: close-quote;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Content Section */
.testimonial-content {
    padding: 6rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.testimonial-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.testimonial-text p:first-child {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Back to Testimonials Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #1d4ed8;
    transform: translateX(-4px);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* Related Testimonials */
.related-testimonials {
    padding: 6rem 0;
    background: var(--color-surface);
}

.related-header {
    text-align: center;
    margin-bottom: 4rem;
}

.related-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.related-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.related-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid #3b82f6;
}

.related-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.related-card .role {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.related-card .quote {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-hero {
        padding: 6rem 0 4rem;
    }

    .hero-quote {
        font-size: 1.5rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .author-name {
        font-size: 1.75rem;
    }

    .author-title {
        font-size: 1.125rem;
    }

    .author-image {
        width: 100px;
        height: 100px;
    }

    .testimonial-content {
        padding: 4rem 0;
    }

    .testimonial-text p {
        font-size: 1rem;
    }

    .testimonial-text p:first-child {
        font-size: 1.125rem;
    }

    .related-header h2 {
        font-size: 2rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-quote {
        font-size: 1.25rem;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .author-title {
        font-size: 1rem;
    }

    .related-card {
        padding: 1.5rem;
    }
}

/* Dark theme adjustments */
html[data-theme="dark"] .testimonial-rating .stars {
    color: #fbbf24;
}

html[data-theme="dark"] .author-image {
    border-color: #60a5fa;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.2);
}

html[data-theme="dark"] .related-avatar {
    border-color: #60a5fa;
}

html[data-theme="dark"] .related-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .back-link {
    color: #60a5fa;
}

html[data-theme="dark"] .back-link:hover {
    color: #3b82f6;
}