/**
 * Testimonials Styles - Archive and Single Testimonial Pages
 * @package Hypnotherapy_Academy
 */

/* ==========================================================================
   Testimonial Archive Page
   ========================================================================== */

/* Page Header */
.testimonial-archive-page .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial-archive-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.testimonial-archive-page .page-header .container {
    position: relative;
    z-index: 1;
}

.testimonial-archive-page .page-title {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
}

.testimonial-archive-page .page-description {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Stats Section */
.stats-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #6B46C1;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Testimonials Archive Grid */
.testimonials-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Testimonial Detailed Card */
.testimonial-detailed {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-detailed::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    color: #6B46C1;
    opacity: 0.1;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #6B46C1;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-author-info {
    flex-grow: 1;
}

.testimonial-detailed .author-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.testimonial-detailed .author-name a {
    color: #1a1a1a;
    transition: color 0.3s;
}

.testimonial-detailed .author-name a:hover {
    color: #6B46C1;
}

.author-role {
    color: #6B46C1;
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

.testimonial-detailed .rating {
    color: #FFB800;
    font-size: 1.2rem;
    margin-left: auto;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-text p:last-child {
    margin-bottom: 0;
}

.testimonial-footer {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.testimonial-footer .read-more {
    color: #6B46C1;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.testimonial-footer .read-more:hover {
    color: #553C9A;
    gap: 12px;
}

/* No Testimonials Found */
.no-testimonials-found {
    text-align: center;
    padding: 60px 20px;
}

.no-testimonials-found h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.no-testimonials-found p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* ==========================================================================
   Single Testimonial Page
   ========================================================================== */

.testimonial-single-page {
    background: #fff;
}

/* Testimonial Hero */
.testimonial-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: #fff;
    position: relative;
}

.testimonial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.testimonial-hero .container {
    position: relative;
    z-index: 1;
}

.testimonial-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid #fff;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-hero-info {
    flex-grow: 1;
}

.testimonial-hero .author-name {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.testimonial-hero .author-role {
    font-size: 1.3rem;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 15px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #FFB800;
}

.rating-text {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

/* Testimonial Content Wrapper */
.testimonial-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 60px 0;
}

/* Main Content */
.testimonial-main-content {
    min-width: 0;
}

.testimonial-quote-icon {
    font-size: 4rem;
    color: #6B46C1;
    opacity: 0.15;
    margin-bottom: 20px;
}

.testimonial-story {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #333;
}

.testimonial-story p {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-story p:first-of-type {
    font-size: 1.4rem;
    color: #555;
    font-weight: 500;
}

.testimonial-meta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 0.95rem;
}

.testimonial-meta i {
    color: #6B46C1;
}

/* Sidebar */
.testimonial-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.sidebar-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Stats Card */
.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list i {
    color: #6B46C1;
    font-size: 1.2rem;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cta-card h3 {
    color: #fff;
}

.cta-card p {
    color: #fff;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-card .btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.cta-card .btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.cta-card .btn-outline:hover {
    background: #fff;
    color: #6B46C1;
}

/* Share Card */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.facebook:hover {
    background: #2d4373;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0c85d0;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.linkedin:hover {
    background: #005582;
}

.share-btn.email {
    background: #888;
}

.share-btn.email:hover {
    background: #666;
}

/* Related Testimonials */
.related-testimonials {
    background: #f8f9fa;
}

/* ==========================================================================
   Testimonial Card Component (for homepage/grids)
   ========================================================================== */

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6B46C1;
}

.author-info .author-name {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: #1a1a1a;
    font-weight: 600;
}

.author-info .author-title {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

@media (max-width: 1024px) {
    .testimonial-content-wrapper {
        grid-template-columns: 1fr;
    }

    .testimonial-sidebar {
        position: static;
    }

    .testimonial-hero-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .testimonial-archive-page .page-title,
    .testimonial-hero .author-name {
        font-size: 2rem;
    }

    .testimonial-archive-page .page-description,
    .testimonial-hero .author-role {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .testimonial-detailed {
        padding: 25px;
    }

    .testimonial-detailed::before {
        font-size: 4rem;
    }

    .testimonial-header {
        flex-wrap: wrap;
    }

    .testimonial-detailed .rating {
        margin-left: 0;
        width: 100%;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .rating-display {
        justify-content: center;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .testimonial-detailed {
        padding: 20px;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }

    .testimonial-detailed .author-name {
        font-size: 1.2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .sidebar-card {
        padding: 20px;
    }
}
