/* style.css */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #141414; /*  Dark Background */
    color: #fff;  /* White text */
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}


.video-duration {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(248, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 3; /* Make sure it's above other elements */
    font-weight: bold;
}

.container {
    /* width: 90%; Slightly wider */
    /* max-width: 1200px; Prevent super wide containers */
    /* margin: 0 auto; */
    padding: 10px;
}

/* Header Styles */
header {
    background-color: #000000; /* Darker header */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    /* position: sticky;  Keep header at top */
    top: 0;
    z-index: 100; /* Ensure it stays on top */
    border-bottom: 2px solid #fa0466d2;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative; /* Makes child elements position relative to this */
    display: inline-block;
}

.logo a {
    font-size: 2.6rem;
    text-decoration: none;
    color: #fa0466;
    font-weight: 700;
    transition: color 0.3s ease;
    padding-left: 4px;
    position: relative; /* Allows absolute positioning of the Santa cap */
    display: inline-block;
}

.b-letter {
    position: relative; /* Ensures the "B" is a reference for absolute positioning */
}

.santa-cap {
    position: absolute;
    top: 6px;
    left: 97%;
    width: 53px;
    transform: rotate(-4deg);
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    .logo a {
        font-size: 2rem; /* Reduce font size on smaller screens */
    }

    .santa-cap {
        position: absolute;
        top: 8px;
        left: 97%;
        width: 50px;
        transform: rotate(-4deg);
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 2.6rem; /* Further reduce font size for very small screens */
    }

    .santa-cap {
        position: absolute;
        top: 8px;
        left: 97%;
        width: 50px;
        transform: rotate(-4deg);
    }

}

.logo a:hover {
    color: #a10242; /* Pink logo on hover */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: #ccc; /* Light grey */
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #fff; /* White on hover and active */
}

.search-bar {
    display: flex;
    align-items: center;
    width: 450px; /* Fixed width */
}

.search-bar input[type="text"] {
    padding: 10px;
    border: 1px solid #333;
    background-color: #282828;
    color: #fff;
    border-radius: 8px;
    margin-right: 10px;
    width: 100%; /* Take up all available space */
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar input[type="text"]:focus {
    border-color: #f00060; /* Pink on focus */
    outline: none; /* Remove default focus outline */
}

.search-bar button {
    padding: 10px 12px;
    background-color: #f00060; /* Pink button */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background-color: #d80a59;
}

.search-bar button i {
    font-size: 1.1rem;
}

.user-actions {
    display: flex;
    align-items: center;
}

.profile-button {
    padding: 10px 20px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.profile-button:hover {
    background-color: #333;
    border-color: #777;
}

.profile-button i {
    margin-right: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(to left, rgb(10 10 10 / 21%), rgba(32, 32, 32, 0.7)), url('assets/hero-image.jpg'); /* Add a background image */
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center; /* Center the content  */
}

.hero .container {
    display: flex; /* Use flexbox for better layout */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
}

.hero-content {
    width: 100%; /* Take up the full width */
    max-width: 800px;   /* Limit the max width */
    padding: 0 20px; /* Add some padding */
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700; /* Bold title */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    color: #ddd; /* Lighter subtitle color */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
}

.cta-button {
    padding: 18px 40px;
    background-color: #f00060; /* Pink button */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);  /* Subtle shadow */
}

.cta-button:hover {
    background-color: #d80a59;
    transform: translateY(-2px); /* Lift button slightly */
}

.hero-image {
    display: none;  /* Hiding the  image for this layout  */
    width: 100%;
    max-width: 600px;
    margin-top: 30px; /* Space above the image */
    border-radius: 12px;
    overflow: hidden; /*  Prevent image overflow */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Featured Videos Section */

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px; /*  Add a little spacing between letters */
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 5 columns */
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background-color: #212121;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden; /*  Clip any content that overflows */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 2px 13px 8px rgb(0 0 0) /* Subtle shadow */
    
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /*  Increase the shadow on hover  */
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Make the entire card clickable */
    position: relative;  /* Needed for absolute positioning of overlay */
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio. Adjust for different aspect ratios */
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Cover the container */
    background-color: #000;  
    display: block; /* Remove any extra spacing */
    transition: opacity 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
}

 .video-info {
    padding: 20px;
    text-align: left;
}

.video-title {
    font-size: 1.0rem;
    margin-bottom: 8px;
    font-weight: 400;
    transition: color 0.3s ease; /*  Add a transition on hover */
}

.video-details {
    color: #999; /*  Lighter details color */
    font-size: 1rem;
     transition: color 0.3s ease;
}


.video-card:hover .video-title,
.video-card:hover .video-details {
   color: #f00060; /* Pink on hover */
}

.load-more-container {
    text-align: center;
}

.load-more-button {
    padding: 15px 35px;
    background-color: #333; /* Darker Button */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.load-more-button:hover {
    background-color: #444;
    transform: translateY(-2px);

}

.load-more-button i {
    margin-left: 8px;
}


/* Video Player Section */
.video-player {
    background-color: #1e1e1e;
    padding: 50px 0;
     /* Hide the video player initially */
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.9); /* Dark background with transparency  */
     z-index: 1000;  /*  Ensure it's on top  */
     display: flex;
     align-items: center;
     justify-content: center;
}

.video-player .container {
    width: 80%;
    max-width: 900px; /* Limit the player's width */
}

.video-container {
    margin-bottom: 25px;
}

.video-player video {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}


.video-details {
    padding: 0px;
    text-align: left;
    padding-bottom: 35px;
}
.video-container video {
    width: 50%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.video-details h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.video-details p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.close-button {
    padding: 12px 25px;
    background-color: #f00060; /* Pink close button */
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-button:hover {
    background-color: #d80a59;
    transform: translateY(-2px);
}

.close-button i {
    margin-right: 8px;
}

/* Footer Styles */
footer {
    background-color: #1e1e1e;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid #333; /*  Subtle border  */


    bottom: 0;           /* Stick to the bottom */
    margin-top: auto;
}



/*  Responsive Design (Media Queries) */

@media (max-width: 1024px) {
    .container {
        width: 95%; /* More width on larger mobile devices */
        padding: 0;
    }

    .hero-content {
        max-width: 90%; /* Adjust content width */
        padding: 0;
    }
    .hero-title {
      font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-image {
        display: none; /* Hide hero image on smaller screens */
    }
    .search-bar {
      width: auto; /* Allow the search bar to adjust its width */
    }
}


@media (max-width: 768px) {
    header .container {
       flex-direction: column; /* Stack elements vertically */
       align-items: flex-start; /* Center items horizontally */
       text-align: left;  /* Center text */
    }

    .logo {
        margin-bottom: 15px; /* Space below the logo */
    }

    nav ul {
        flex-direction: column; /* Stack navigation links vertically */
        margin-top: 10px;
    }
     nav li {
        margin: 8px 0;  /* Adjusted spacing */
    }
    .search-bar {
        width: 100%;
        margin: 20px 0;  /*  Spacing */
        max-width: none; /* Take full width */
    }
    .user-actions {
        margin-top: 15px;
      }

    .hero .container {
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }
    .hero {
        padding: 0;
    }
    .hero-title {
      font-size: 2.8rem;
    }

    .featured-videos {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }

    .hero-image {
        margin-top: 20px; /* Add space below the content */
    }

    .video-player .container {
        width: 90%;
    }

    .video-details {
        padding: 15px;
    }

    .video-details h2 {
        font-size: 1.5rem;
    }
    
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr; /* Stack video cards on small screens */
        gap: 20px;
    }
    .hero-title {
      font-size: 2.5rem;
    }
}
