/* Editor styles */
.wp-block-tonyteo-testimonial {
    padding: 40px 0;
    background-color: #1e1e1e;
    color: #fff;
}

.site-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.site-section-title h2 {
    font-size: 16px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.site-section-title h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
}

/* Slide Management Interface */
.testimonial-slides-management {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.slides-list {
    flex: 1;
    min-width: 300px;
}

.slides-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slides-list-header h3 {
    margin: 0;
    color: #fff;
}

.add-slide-button {
    display: flex;
    align-items: center;
    gap: 5px;
}

.slide-item {
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slide-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.slide-item.active {
    background: rgba(30, 140, 190, 0.2);
    border-left: 3px solid #1e8cbe;
}

.slide-preview {
    display: flex;
    align-items: center;
    padding: 10px;
}

.slide-drag-handle {
    color: #999;
    cursor: grab;
    margin-right: 10px;
}

.slide-preview-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.slide-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.slide-info {
    display: flex;
    flex-direction: column;
}

.slide-title {
    font-weight: bold;
    color: #eee;
}

.slide-subtitle {
    font-size: 12px;
    color: #999;
}

.slide-actions {
    display: flex;
    gap: 5px;
}

.no-slides-message {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Preview area */
.slide-preview-container {
    flex: 1;
    min-width: 300px;
}

.slide-preview-container h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-preview {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.testimonial-item {
    margin: 0 auto;
    max-width: 300px;
}

.testimonial-item .inner {
    background-color: #333;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.testimonial-item figure {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.testimonial-item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-item p {
    color: #ddd;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-item h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-item h6 {
    color: #999;
    font-size: 14px;
}

/* Inspector panel image container */
.slide-image-container {
    margin-bottom: 20px;
    text-align: center;
}

/* Swiper styles - only for frontend */
.swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

/* Make TextControl inputs more visible in dark theme */
.testimonial-item .components-text-control__input {
    background-color: #444;
    color: #fff;
    border-color: #555;
    padding: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.testimonial-item .components-text-control__input::placeholder {
    color: #999;
}

/* Add to your existing CSS */
.slide-url {
    font-size: 12px;
    color: #0074ab;
    margin-top: 2px;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 150px;
}

.link-preview {
    margin-top: 10px;
}

.link-preview a {
    color: #0074ab;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* For frontend clickable testimonials */
.testimonial-link {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.testimonial-link:hover {
    transform: translateY(-5px);
}

/* Testimonial Swiper Styles */
.testimonial-slider-wrapper {
    position: relative;
    padding: 0 40px;  /* Space for navigation arrows */
    margin: 0 auto;
    max-width: 1200px;
}

.tonyteo-testimonial-slider {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Slide Styles */
.swiper-slide .inner {
    background-color: #333;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    height: 100%;
    margin: 10px;
    transition: transform 0.3s ease;
}

.swiper-slide .inner:hover {
    transform: translateY(-5px);
}

.swiper-slide figure {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.swiper-slide figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide p {
    color: #ddd;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.swiper-slide h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.swiper-slide h6 {
    color: #999;
    font-size: 14px;
}

/* Navigation Buttons */
.testimonial-slider-wrapper .swiper-button-next,
.testimonial-slider-wrapper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.testimonial-slider-wrapper .swiper-button-next:hover,
.testimonial-slider-wrapper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

.testimonial-slider-wrapper .swiper-button-next:after,
.testimonial-slider-wrapper .swiper-button-prev:after {
    font-size: 18px;
}

/* Pagination */
.testimonial-slider-wrapper .swiper-pagination {
    bottom: 0;
    position: relative;
    margin-top: 20px;
}

.testimonial-slider-wrapper .swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
}

.testimonial-slider-wrapper .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

/* Editor-only controls styling */
.testimonial-controls {
    margin-bottom: 20px;
}