/**
 * ATS Post Hero Styles
 * Professional hero section for posts with image/video support
 */

.ats-post-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #001e30;
    display: flex;
    flex-direction: column;
}

/* Hero Media Container */
.ats-hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
}

/* Hero Image/Video Background */
.ats-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ats-hero-image.ats-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ats-hero-image.ats-no-image p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    margin: 0;
}

/* Video Container */
.ats-hero-video {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Video Iframe Container */
.ats-video-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: #000;
}

.ats-video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Play Button */
.ats-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ats-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.ats-play-button svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    max-width: 100%;
    max-height: 100%;
}

.ats-play-button i {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.ats-play-button img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.ats-play-button.playing {
    display: none;
}

/* Overlay */
.ats-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    /* Responsive styles */
}

@media screen and (max-width: 768px) {
    /* Responsive styles */
}

@media screen and (max-width: 480px) {
    /* Responsive styles */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ats-post-hero {
    animation: fadeIn 0.5s ease-in;
}

/* Loading State */
.ats-hero-video.loading .ats-play-button svg {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   ATS BLOG POSTS WIDGET STYLES
   ============================================ */

.ats-blog-post-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background with title */
.ats-blog-background {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Title Wrapper */
.ats-blog-title-wrapper {
    position: relative;
    z-index: 3;
    display: block;
    box-sizing: border-box;
}

/* Title */
.ats-blog-title {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    word-wrap: break-word;
}

/* Media Container */
.ats-blog-media {
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* margin-top is set dynamically via inline style based on background extension */
}

/* Media Inner (Image/Video) */
.ats-blog-media-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.ats-blog-media-inner.ats-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cccccc;
}

.ats-blog-media-inner.ats-no-image p {
    color: #666;
    margin: 0;
}

/* Video Container */
.ats-blog-video {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Video Iframe */
.ats-blog-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: #000;
    border-radius: inherit;
}

.ats-blog-video-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

/* Play Button for Blog Videos */
.ats-blog-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ats-blog-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.ats-blog-play-button svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    max-width: 100%;
    max-height: 100%;
}

/* Icon library icon */
.ats-blog-play-button i {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Custom image icon */
.ats-blog-play-button img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.ats-blog-play-button.playing {
    display: none;
}

/* Responsive Blog Posts */
@media screen and (max-width: 1024px) {
    .ats-blog-title {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .ats-blog-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 480px) {
    .ats-blog-title {
        font-size: 24px;
    }
}
