/* RixinoHUB - Ortak CSS Dosyası */

/* ================================
   SAYFA YÜKLENİYOR ANIMASYONU
   ================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
}

.page-loader.active {
    display: flex;
}

.loader-content {
    text-align: center;
    color: #ffa500;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 165, 0, 0.2);
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 18px;
    font-weight: bold;
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
    animation: pulse-text 1.5s ease-in-out infinite;
}

.loader-dots {
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Genel Body Stilleri */
body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Navbar Stilleri - Tüm Sayfalarda Aynı */
.navbar {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #ff6b35 100%) !important;
    border-bottom: 2px solid #ff6b35;
}

/* Sıralama menüsü sadece mobilde */
.mobile-sort {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-sort {
        display: flex;
    }
}

.navbar-brand {
    color: #ffa500 !important;
}

.nav-link {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ff6b35 !important;
}

/* Card Stilleri */
.card {
    background: #232323;
    border: none;
    border-radius: 10px;
}

.card-title a {
    color: #fff;
    text-decoration: none;
}

.card-title a:hover {
    color: #ff6b35;
}

/* Video kartları için uzun metin düzeltmesi */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 2.6em;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 3.9em;
}

/* Thumbnail Container */
.thumb-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.thumb-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.thumb-container:hover img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 165, 0, 0.9);
    pointer-events: none;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

/* Video Stats Bar */
.video-stats-bar {
    background: #181818;
    border-top: 1px solid #333;
    font-size: 0.8em;
    padding: 6px 9px;
}

.stat-item {
    color: #ffa500;
    margin-right: 10px;
}

/* Pagination */
.pagination .page-link {
    background: #232323;
    color: #fff;
    border: none;
}

.pagination .page-link:hover,
.pagination .active .page-link {
    background: #ff6b35;
    color: #000;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.sidebar .widget-title {
    color: #ffa500;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 8px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.sidebar ul li a:hover {
    color: #ffa500;
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
}

/* Arama formu */
.navbar-nav .form-control {
    background: #333 !important;
    border: 1px solid #555 !important;
    color: #fff !important;
}

.navbar-nav .form-control:focus {
    background: #444 !important;
    border-color: #ffa500 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 165, 0, 0.25) !important;
    color: #fff !important;
}

.navbar-nav .form-control::placeholder {
    color: #ccc !important;
}

.btn-outline-warning {
    border-color: #ffa500;
    color: #ffa500;
}

.btn-outline-warning:hover {
    background-color: #ffa500;
    border-color: #ffa500;
    color: #000;
}

/* Video Info */
.video-info {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.entry-title {
    color: #ffa500;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 165, 0, 0.4);
    line-height: 1.2;
    text-transform: capitalize;
}

/* Tags List */
.tags-list {
    margin: 15px 0;
}

.tags-list .label {
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.tags-list .label:hover {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    color: #000;
}

/* Under Video Block */
.under-video-block {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.widget-title {
    color: #ffa500;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

/* Related Video Cards */
.related-video-card {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 1px solid #555;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.related-video-card:hover {
    transform: translateY(-3px);
    border-color: #ff6b35;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.related-video-card .thumb-container {
    position: relative;
    overflow: hidden;
    height: 140px;
}

.related-video-card .thumb-container img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-video-card:hover .thumb-container img {
    transform: scale(1.05);
}

.related-video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(255, 165, 0, 0.9);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

.related-video-card .video-title {
    padding: 10px;
    font-size: 0.85em;
    font-weight: bold;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 2.2em;
    min-height: 2.2em;
}

.related-video-card .video-stats {
    padding: 0 10px 10px;
    font-size: 0.75em;
    color: #ffa500;
}

/* Show More Related */
.show-more-related {
    text-align: center;
    margin-top: 20px;
}

.show-more-related .button {
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.show-more-related .button:hover {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #000;
}

/* Video Container */
.video-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    position: relative;
    outline: none;
    height: 500px;
    max-width: 900px;
    /* Maksimum genişlik sınırı */
    margin: 0 auto;
    /* Ortalama */
}

.video-container:focus {
    border-color: #ffa500;
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.5);
}

.player-iframe {
    width: 100%;
    height: 500px;
    border: none;
    background: #000;
    pointer-events: auto;
}

/* Video page ana içerik düzenlemesi */
.video-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Video click'i engelle ama kontrolleri bırak */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Error Container */
.error-container {
    text-align: center;
    padding: 40px 20px;
    color: #cccccc;
}

.error-icon {
    font-size: 64px;
    color: #ff6b35;
    margin-bottom: 20px;
}

.error-title {
    color: #ffa500;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Mobil optimizasyonları */
@media (max-width: 768px) {
    .video-container {
        height: 300px;
        max-width: 100%;
        /* Mobilde tam genişlik */
        margin: 0;
        /* Mobilde margin kaldır */
    }

    .player-iframe {
        height: 300px;
    }

    .video-page-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .entry-title {
        font-size: 1.6em;
    }

    .widget-title {
        font-size: 1.3em;
    }

    .related-video-card .thumb-container {
        height: 120px;
    }

    .related-video-card .thumb-container img {
        height: 120px;
    }

    .related-video-card .video-title {
        font-size: 0.8em;
        -webkit-line-clamp: 2;
        max-height: 2.1em;
        min-height: 2.1em;
    }

    .sidebar {
        order: 2;
        margin-top: 20px;
    }

    .main-content {
        order: 1;
    }

    .card-title {
        font-size: 0.9em;
    }

    .thumb-container img {
        height: 160px;
    }

    /* Mobilde kategoriler dropdown */
    .mobile-categories {
        display: block;
    }

    .desktop-sidebar {
        display: none;
    }

    .navbar-nav .dropdown-menu {
        background: #2d2d2d;
        border: 1px solid #404040;
        max-height: 300px;
        overflow-y: auto;
    }

    .navbar-nav .dropdown-item {
        color: #fff;
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .navbar-nav .dropdown-item:hover {
        background: rgba(255, 107, 53, 0.1);
        color: #ffa500;
    }
}

/* Filter dropdown active item styling */
.dropdown-item.active {
    background-color: #ff6b35 !important;
    color: #ffffff !important;
}

.dropdown-item.active:hover {
    background-color: #ffa500 !important;
    color: #ffffff !important;
}

/* Mobile categories gizleme - sadece kategoriler için */
@media (min-width: 769px) {
    .mobile-categories {
        display: none;
    }

    .desktop-sidebar {
        display: block;
    }
}