/* Admin Styles */
.fan-featured-posts-container {
    max-width: 800px;
    margin: 20px 0;
}

.fan-featured-post-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.fan-featured-post-item h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.fan-featured-post-image-container {
    margin: 10px 0;
}

.fan-featured-post-image-preview {
    margin: 10px 0;
    max-width: 300px;
}

.fan-featured-post-image-preview img {
    max-width: 100%;
    height: auto;
}

.fan-featured-posts-usage {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
}

.fan-featured-posts-usage code {
    display: block;
    padding: 10px;
    background: #f5f5f5;
    margin: 10px 0;
    border: 1px solid #e5e5e5;
}

/* Frontend Styles */
.fan-featured-posts-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.fan-featured-posts-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.fan-featured-posts-control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.fan-featured-posts-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.fan-featured-posts-control-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.fan-featured-post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    pointer-events: none;
}

.fan-featured-post.active {
    opacity: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, opacity 0.2s;
    pointer-events: auto;
}
.fan-featured-post.active:hover {
    opacity: 0.96;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}

.fan-featured-post-link {
    /* position: relative;
    display: block;
    width: 100%;
    height: 100%; */
    text-decoration: none;
    color: inherit;
}

.fan-featured-post-title {
    position: absolute;
    bottom: 60px;
    left: 40px;
    max-width: 80%;
    margin: 0;
    padding: 15px 20px;
    /* background: rgba(0, 0, 0, 0.7); */
    color: #fff;
    font-size: 1.5em;
    transition: background-color 0.3s ease;
    z-index: 3;
}

.fan-featured-post.active .fan-featured-post-link:hover .fan-featured-post-title {
    background: rgba(0, 0, 0, 0.8);
}

/* Loading state */
.fan-featured-post-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fan-featured-post-image.loaded {
    opacity: 1;
}

.fan-featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.fan-featured-post:after {    
    content: '';    
    position: absolute;    
    bottom: 0;    
    left: 0;    
    width: 100%;    
    height: 400px;    
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);    
    pointer-events: none;    
    z-index: 2;
}

.fan-featured-post {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.fan-featured-post:hover {
    transform: translateY(-5px);
}

.fan-featured-post-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.fan-featured-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fan-featured-posts-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.fan-featured-posts-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fan-featured-posts-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.fan-featured-posts-dot.active {
    background: #b20036;
    transform: scale(1.2);
} 

.fan-featured-post:not(.active) .fan-featured-post-title {
    z-index: 1;
}
.fan-featured-post.active .fan-featured-post-title {
    z-index: 10;
} 