/**
 * Featured Posts Carousel Styles
 * Plugin: Featured Posts Carousel
 * Version: 1.1.0
 */

/* Wrapper */
.featured-carousel-wrapper {
    padding: 40px 0;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Title */
.fc-section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid currentColor;
    font-style: italic;
}

/* Carousel Container */
.fc-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Swiper Container */
.fc-swiper {
    overflow: hidden;
    flex: 1;
    cursor: default;
}

/* Override Swiper grab cursor */
.fc-swiper.swiper {
    cursor: default;
}

.fc-swiper .swiper-wrapper {
    cursor: default;
}

/* Navigation Buttons */
.fc-nav-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #008B8B;
    background: white;
    color: #008B8B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.fc-nav-btn:hover {
    background: #008B8B;
    color: white;
}

.fc-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fc-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Card Styles */
.fc-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: default;
}

.fc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.fc-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.fc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fc-card:hover .fc-card-image img {
    transform: scale(1.05);
}

.fc-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Card Overlay with Buttons */
.fc-card-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fc-register-btn {
    background: #008B8B;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.fc-register-btn:hover {
    opacity: 0.9;
    color: white !important;
    text-decoration: none !important;
}

.fc-share-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #008B8B;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    padding: 0;
}

.fc-share-btn:hover {
    opacity: 0.9;
}

.fc-share-btn svg {
    width: 16px;
    height: 16px;
}

/* Card Content */
.fc-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: default;
}

/* Ensure links have pointer cursor */
.fc-card-title a,
.fc-card-image > a,
.fc-register-btn {
    cursor: pointer;
}

/* Category Meta */
.fc-card-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fc-category-parent {
    font-weight: 500;
}

.fc-category-parent::after {
    content: " •";
    margin-left: 4px;
}

.fc-category {
    color: #888;
}

/* Card Title */
.fc-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.fc-card-title a {
    color: #008B8B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fc-card-title a:hover {
    text-decoration: underline;
}

/* Authors */
.fc-card-authors {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Date */
.fc-card-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

/* Excerpt */
.fc-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-top: auto;
}

/* No Posts Message */
.fc-no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Swiper Slide Height */
.fc-swiper .swiper-slide {
    height: auto;
}

/* Remove Swiper default pagination if not needed */
.fc-swiper .swiper-pagination {
    display: none;
}

/* Tooltip */
.fc-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
    z-index: 1000;
    pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .fc-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 992px) {
    .featured-carousel-wrapper {
        padding: 30px 16px;
    }
    
    .fc-section-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .fc-nav-btn {
        width: 36px;
        height: 36px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .fc-nav-prev {
        left: 0;
    }
    
    .fc-nav-next {
        right: 0;
    }
    
    .fc-carousel-container {
        padding: 0 40px;
    }
    
    .fc-card-title {
        font-size: 15px;
    }
    
    .fc-register-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .fc-section-title {
        font-size: 20px;
    }
    
    .fc-card-content {
        padding: 12px;
    }
    
    .fc-card-title {
        font-size: 14px;
    }
    
    .fc-card-excerpt {
        font-size: 13px;
    }
    
    .fc-carousel-container {
        padding: 0 36px;
    }
    
    .fc-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .fc-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Dark card variant */
.fc-card.fc-card-dark .fc-card-image {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
}
