/* 
 * Frontend Styles for Testimonials for Wildlife Guides
 * Author: Anirban Saha
 */

/* Testimonials Marquee */
.tfwg-marquee-container {
    overflow: hidden;
    padding: 40px 0;
    background: #f9f9f9;
}

.tfwg-marquee {
    display: flex;
    gap: 30px;
    animation: tfwg-marquee-scroll 50s linear infinite;
    width: fit-content;
}

.tfwg-marquee:hover {
    animation-play-state: paused;
}

@keyframes tfwg-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tfwg-marquee-item {
    flex-shrink: 0;
    width: 400px;
}

.tfwg-testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 100%;
    position: relative;
}

.tfwg-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: #e0e0e0;
    font-family: Georgia, serif;
    line-height: 1;
}

.tfwg-testimonial-text {
    font-style: italic;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.tfwg-testimonial-author {
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.tfwg-testimonial-author strong {
    display: block;
    margin-bottom: 5px;
    color: #2271b1;
    font-size: 16px;
}

.tfwg-testimonial-author a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.tfwg-testimonial-author a:hover {
    color: #2271b1;
}

/* Single Testimonial */
.tfwg-single-testimonial {
    max-width: 800px;
    margin: 40px auto;
}

.tfwg-testimonial-quote {
    background: #fff;
    border-left: 5px solid #2271b1;
    padding: 40px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tfwg-testimonial-quote p {
    font-size: 20px;
    line-height: 1.8;
    font-style: italic;
    color: #333;
    margin: 0;
}

.tfwg-testimonial-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.tfwg-testimonial-footer cite {
    font-style: normal;
}

.tfwg-testimonial-footer strong {
    display: block;
    font-size: 18px;
    color: #2271b1;
    margin-bottom: 10px;
}

.tfwg-testimonial-links {
    display: flex;
    gap: 15px;
}

.tfwg-testimonial-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.tfwg-testimonial-links a:hover {
    color: #2271b1;
}

/* Photo Gallery */
.tfwg-gallery {
    display: grid;
    gap: 25px;
    margin: 40px 0;
}

/* Gallery Column Variations */
.tfwg-gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tfwg-gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tfwg-gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tfwg-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.tfwg-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tfwg-gallery-image {
    position: relative;
    overflow: hidden;
}

.tfwg-gallery-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.tfwg-gallery-item:hover .tfwg-gallery-image img {
    transform: scale(1.05);
}

.tfwg-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: white;
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tfwg-gallery-item:hover .tfwg-gallery-overlay {
    opacity: 1;
}

.tfwg-gallery-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: white;
}

.tfwg-scientific-name {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 10px;
}

.tfwg-caption {
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0;
    opacity: 0.95;
}

.tfwg-location {
    font-size: 14px;
    margin: 8px 0 0;
    opacity: 0.9;
}

/* Gallery Credits */
.tfwg-gallery-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.tfwg-photographer-name {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.tfwg-testimonial-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}

.tfwg-testimonial-link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tfwg-gallery-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tfwg-marquee-item {
        width: 320px;
    }
    
    .tfwg-gallery-columns-3,
    .tfwg-gallery-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tfwg-gallery-image img {
        height: 250px;
    }
    
    .tfwg-testimonial-quote {
        padding: 25px;
    }
    
    .tfwg-testimonial-quote p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tfwg-gallery-columns-2,
    .tfwg-gallery-columns-3,
    .tfwg-gallery-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .tfwg-gallery-credits {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tfwg-marquee-item {
        width: 280px;
    }
}

/* Loading State */
.tfwg-loading-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.tfwg-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: tfwg-spin 1s linear infinite;
}

@keyframes tfwg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.tfwg-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.tfwg-empty-state p {
    font-size: 18px;
    margin: 0;
}
