
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

*{
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}


body ::selection{
    background-color: #f7cf31;
    color: #000000;
}

/* ===== BASIC RESET ===== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: #000000;
    color: #333;
}

/* ===== HERO / SLIDER ===== */
.hero {
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 200px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* طبقة تغميق فوق الفيديو */
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.55);
    z-index: 2;
}


.hero-content{
    position: relative;
    z-index: 10;
    max-width: 600px;
    animation: fadeUp 1.8s ease forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translate(0%, 50%);
    }
    100% {
        opacity: 1;
        transform: translate(0%, 0%);
    }
}

.category{
    color: #f7cf31;
    font-size: 20px;
    font-weight: 600;
    opacity: .9;
}

.title{
    color: #fff;
    font-weight: 700;
    font-size: 80px;
    line-height: 1.15;
    font-weight: 900;
    margin: 20px 0 30px;
}

.author{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    opacity: .9;
}

.author img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
}




/* ===== RECENT UPLOAD SECTION ===== */
.uploads{
    width: 90%;
    margin: 50px auto;
}

.uploads h2{
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
}

.cards{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 25px;
}

.card{
    background: rgb(37, 37, 37);
    padding-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: brightness(0.7);
}

.card:hover {
    transform: translateY(-12px);
    filter: brightness(1);
}

.thumb{
    position: relative;
}

.thumb img{
    width: 100%;
    display: block;
}

.play{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
    background: rgba(0,0,0,.5);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.duration{
    position: absolute;
    bottom: 10px; right: 10px;
    background: #f7cf31;
    color: rgb(0, 0, 0);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.tag{
    display: inline-block;
    margin: 15px;
    color: #7c7c7c;
    font-size: 25px;
    font-weight: bold;
}

.card h3{
    padding: 0 15px;
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
}

.meta{
    padding: 0 15px;
    font-size: 13px;
    color: white;
    opacity: .6;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
    .hero{
        padding: 0 20px;
        height: 70vh;
    }
    .title{
        font-size: 28px;
    }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
iFrame section
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */


/* Popup container */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Popup content (bigger & centered nicely) */
.popup-content {
    position: relative;
    width: 85%;
    max-width: 1940px;  
    height: 85%;      /*  ارتفاع كبير  . مكنش موجود*/  
    background: #111;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.39);
    overflow: hidden;
    animation: popupIn 1s ease;
}

/* Smooth animation */
@keyframes popupIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bigger & modern video frame */
.popup-content iframe {
    width: 100%;
    height: 100%; /* . كان 600.. ارتفاع كبير */
    border-radius: 15px;
    border: 2px solid #222;
}

/* Modern close button */
.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 45px;
    height: 45px;
    background: #ffd000;
    color: white;
    font-size: 30px;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: 0.2s ease;
}

/* Close button hover effect */
.close-btn:hover {
    color: #000;
    transform: scale(1.1);
}

body.noscroll {
    overflow: hidden;
}

/* 📱 نسخة الموبايل */
@media (max-width: 600px) {
    .video-popup-content {
        width: 95%;
        height: 60vh;   /* أصغر شوية للموبايل */
        border-radius: 15px;
    }

    .close-popup {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }

    #popupVideo {
        height: 100%;
    }

    .video-popup {
        padding: 10px;
    }

    .popup-content {
        height: 380px;     
      
    }
    

    .popup-content iframe {
        height: 350px;

    }
    
}



/* ------------Laptop Size---------------- */

@media (max-width: 1366px) {
    .popup-content {
        max-width: 900px;
    }
}
