/**
 * E-Manşet Frontend Custom Styles
 */

/* ================================================
   Video Player & Embed Containers - Responsive
   ================================================ */

/* Video Player Wrapper */
.video-player {
    width: 100%;
    margin-bottom: 24px;
}

.video-wrapper {
    position: relative;
    width: 100%;
}

/* Common responsive video container styles */
.video-embed-container,
.video-youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}

/* All embedded elements (iframe, video, object, embed) */
.video-embed-container iframe,
.video-embed-container object,
.video-embed-container embed,
.video-embed-container video,
.video-youtube-container iframe,
.video-youtube-container object,
.video-youtube-container embed,
.video-youtube-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* YouTube Thumbnail */
.video-youtube-container .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Play Button */
.video-youtube-container .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-youtube-container .video-play-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-youtube-container .video-play-btn svg {
    fill: #fff;
    margin-left: 4px;
}

/* Duration Badge */
.video-youtube-container .video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

/* Direct Video Player */
.video-direct {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #000;
}

/* No Content Placeholder */
.video-no-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #666;
    border-radius: 8px;
}

.video-no-content svg {
    stroke: #444;
    margin-bottom: 12px;
}

.video-no-content p {
    margin: 0;
    font-size: 14px;
}

/* 4:3 Aspect Ratio alternatifi */
.video-embed-container.ratio-4x3,
.video-youtube-container.ratio-4x3 {
    padding-bottom: 75%;
}

/* 21:9 Ultra-wide Aspect Ratio alternatifi */
.video-embed-container.ratio-21x9,
.video-youtube-container.ratio-21x9 {
    padding-bottom: 42.857%;
}

/* Tablet optimizasyonları */
@media (max-width: 992px) {
    .video-youtube-container .video-play-btn {
        width: 70px;
        height: 70px;
    }

    .video-youtube-container .video-play-btn svg {
        width: 40px;
        height: 40px;
    }
}

/* Mobile optimizasyonları */
@media (max-width: 768px) {
    .video-embed-container,
    .video-youtube-container {
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .video-embed-container iframe,
    .video-embed-container video,
    .video-youtube-container iframe,
    .video-youtube-container video,
    .video-youtube-container .video-thumbnail {
        border-radius: 0;
    }

    .video-youtube-container .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-youtube-container .video-play-btn svg {
        width: 32px;
        height: 32px;
    }

    .video-youtube-container .video-duration {
        bottom: 8px;
        right: 8px;
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 576px) {
    .video-embed-container,
    .video-youtube-container {
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
    }

    .video-youtube-container .video-play-btn {
        width: 56px;
        height: 56px;
    }

    .video-youtube-container .video-play-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* ================================================
   Navigation Dropdown Menu - Subcategories
   ================================================ */

/* Dropdown container */
.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dropdown arrow icon */
.nav-menu .dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-menu li.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.nav-menu li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown menu items */
.nav-menu .dropdown-menu li {
    margin: 0;
}

.nav-menu .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-menu .dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #e53935;
    padding-left: 24px;
}

/* Arrow indicator for submenu */
.nav-menu .dropdown-menu li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #e53935;
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.nav-menu .dropdown-menu li a:hover::before {
    opacity: 1;
}

/* Mobile dropdown adjustments */
@media (max-width: 992px) {
    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f8f8;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu li.has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .nav-menu .dropdown-menu li a {
        padding: 12px 30px;
        font-size: 13px;
        border-bottom: 1px solid #eee;
    }

    .nav-menu .dropdown-menu li a:hover {
        padding-left: 35px;
    }
}

/* ================================================
   Content Special Badges - Manşet & Öne Çıkan
   ================================================ */

.content-special-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 12.5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Manşet Badge - Kırmızı gradient */
.content-special-badge.manset-badge {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.content-special-badge.manset-badge svg {
    opacity: 0.9;
}

/* Öne Çıkan Badge - Altın sarısı gradient */
.content-special-badge.featured-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.content-special-badge.featured-badge svg {
    opacity: 0.9;
}

/* Mobile uyum */
@media (max-width: 768px) {
    .content-special-badge {
        padding: 4px 8px;
        font-size: 10px;
        gap: 4px;
    }

    .content-special-badge svg {
        width: 10px;
        height: 10px;
    }
}

/* ================================================
   Content Detail Meta - Two Row Layout
   ================================================ */

.content-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.content-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .content-detail-meta {
        gap: 10px;
    }

    .content-badges-row,
    .content-meta-row {
        gap: 8px;
    }
}

/* ================================================
   Author Avatar - Detail Pages
   ================================================ */

.detail-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .detail-author-avatar {
        width: 60px;
        height: 60px;
    }
}

/* ================================================
   Headline Slider - Manşet Görselleri
   ================================================ */

.headline-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.headline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.headline-swiper {
    width: 100%;
    overflow: hidden;
}

.headline-content {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Headline Render Area */
.headlineRenderArea {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.headlineRenderArea.headline {
    aspect-ratio: 16/9;
}

.headlineRenderImageArea {
    position: relative;
    width: 100%;
    height: 100%;
}

.headlineRenderImageArea.right .headlineTextArea {
    right: 0;
    left: auto;
    text-align: right;
    align-items: flex-end;
}

.headlineRenderImageArea.right .noImageGroundArea {
    right: 0;
    left: auto;
}

/* Background Image */
.headlineRenderImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.headlineRenderImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay */
.noImageGroundArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Text Container */
.headlineRenderImageNoImageArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
}

.headlineTextArea {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: 55%;
    height: 100%;
    padding: 25px;
    box-sizing: border-box;
}

/* Top Title */
.headlineTopTitle {
    margin-bottom: 8px;
}

.headlineTopTitle h2 {
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Main Title */
.headlineTitle {
    margin-bottom: 10px;
}

.headlineTitle h1 {
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */
.headlineDescription {
    margin-bottom: 0;
}

.headlineDescription p {
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Headline Pagination */
.headline-pagination {
    margin-top: 15px;
    text-align: center;
}

.headline-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    margin: 0 5px;
}

.headline-pagination .swiper-pagination-bullet-active {
    background: #e53935;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .headlineTextArea {
        width: 65%;
        padding: 20px;
    }

    .headlineTitle h1 {
        font-size: 26px !important;
    }

    .headlineTopTitle h2 {
        font-size: 14px !important;
    }

    .headlineDescription p {
        font-size: 13px !important;
    }

    .noImageGroundArea {
        width: 70%;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .headline-section {
        padding: 15px 0;
    }

    .headlineRenderArea {
        border-radius: 8px;
    }

    .headlineTextArea {
        width: 100%;
        padding: 15px;
        justify-content: flex-end;
    }

    .noImageGroundArea {
        width: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%) !important;
    }

    .headlineRenderImageArea.right .noImageGroundArea {
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%) !important;
    }

    .headlineRenderImageArea.right .headlineTextArea {
        text-align: left;
        align-items: flex-start;
    }

    .headlineTitle h1 {
        font-size: 20px !important;
        -webkit-line-clamp: 2;
    }

    .headlineTopTitle h2 {
        font-size: 12px !important;
    }

    .headlineDescription p {
        font-size: 12px !important;
        -webkit-line-clamp: 1;
    }

    .headline-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .headlineTextArea {
        padding: 12px;
    }

    .headlineTitle h1 {
        font-size: 18px !important;
    }

    .headlineTopTitle {
        margin-bottom: 5px;
    }

    .headlineTitle {
        margin-bottom: 5px;
    }
}
