/* Global & Reset */
/* FONT */
@font-face {
    font-family: 'Matrix Type';
    src: url('../fonts/matrixtype-font/Matrixtype-lxMZX.ttf') format('truetype');
}

@font-face {
    font-family: 'Home Video';
    src: url('../fonts/home-video-font/HomeVideo-BLG6G.ttf') format('truetype');
}


body {
    background-color: #f7f7f7;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 20px 0;
    padding: 0;
    font-family: 'Matrix Type', sans-serif;
}

h1,
h2 {
    background-color: #FF5C00;
    color: #fff;
    display: table;
    padding: 3px 7px 2px 7px;
}

h3,
h4,
h5,
h6 {
    /* background-color: #FF5C00; */
    font-family: 'Matrix Type', sans-serif;
    color: #FF5C00;
}

h4 {
    font-size: 0.8em;
}

.section {
    margin-bottom: 60px;
}

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

.navbar-brand {
    margin: 0 auto;
}

.navbar-brand img {
    width: 140px;
    margin: 15px 0;
}

nav.nav-links-section {
    background-color: #ff6c00;
    overflow: hidden;
}

nav.nav-links-section .wrapper {
    margin: 0 auto;
    max-width: 1200px;
    height: 37px;
}

ul.nav-links {
    margin: 0;
    padding:0;
    list-style-type: none;
    display: flex;
}

ul.nav-links li {
    line-height: 38px;
}

ul.nav-links li a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 15px;
}


ul.nav-links li a:hover {
    background-color: #fff;
    color: #ff6c00;
}

ul.nav-links li.last-nav {
    margin-left: auto;
}

nav.nav-links-section .mobile-nav-container {
    display: none;
    justify-content: space-between;
}

nav.nav-links-section .mobile-nav {
    background-color: #ff6c00;
    list-style-type: none;
    padding: 0 15px;
    overflow: hidden;
    height: 0px;
    transition: transform 0.5s ease;
    width: stretch;
    z-index: 5;
    margin-top: 37px;
    border: 2px solid #222;
    border-top: none;
    border-right: none;
}

nav.nav-links-section .mobile-nav.focused {
    height: auto;
}

nav.nav-links-section .mobile-nav li {
    margin-bottom: 5px;
    border-bottom: 2px solid #fff;
}

nav.nav-links-section .mobile-nav li.last {
    border-bottom: none;
}

nav.nav-links-section .mobile-nav li a {
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    line-height: 50px;
    display: block;
}

nav.nav-links-section .icon {
    padding: 4px 10px;
    margin: 0;
    color: #FFF;
    text-decoration: none;
    font-size: 19px;
    display: none;
    height: 28px;
}

.fa-bars:before, .fa-navicon:before {
    content: "☰";
}

/* --- 2. News Header (Converted from Flexbox) --- */
.news-header {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.news-header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0;
    display: inline-block;
}

.news-header .follow-btn {
    background-color: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 15px;
}

.news-header p {
    margin-bottom: 0;
}

/* --- 3. Main Content Grid (Converted from Bootstrap Grid to CSS Grid) --- */
.main-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* Responsive adjustments for the grid */
@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        /* Stack main content and sidebar on smaller screens */
    }

    .navbar-search {
        width: 100%;
        margin: 10px 0;
    }
}

/* --- 4. Trending Movie Grid (Converted from Bootstrap to CSS Grid) --- */
.trending-grid-container {
    display: grid;
    gap: 15px;
}

.trending-grid-big {
    grid-column: 1 / -1;
    /* Full width for the first item */
}

.trending-grid-small {
    /* For items 2-6, arrange them in 3 columns on desktop (sharing space with the sidebar) */
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
}

/* Mobile adjustment for small grid (2 columns) */
@media (max-width: 768px) {
    .trending-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}


.article-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.article-card img {
    width: 100%;
    height: 389px;
    object-fit: cover;
    display: block;
}

.trending-grid-big .article-card img {
    height: 400px;
    /* Larger image for the main article */
}

.article-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 92, 0, 0.8), rgba(255, 92, 0, 0));
    padding: 15px;
    color: #fff;
    text-shadow: 2px 2px 3px #000;
}

.article-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.article-card p {
    margin-top: 5px;
    font-size: 0.9rem;
}

/* --- 5. Latest News Section --- */
.latest-news-section {
    border-left: 3px solid #ff6c00;
    padding-left: 15px;
    margin-top: 30px;
}

.latest-news-section div h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.latest-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 15px;
    text-decoration: none;
    color: #333;
}

.latest-item:hover {
    text-decoration: underline;
    color: #fff;
    text-underline-offset: 3px;
}

.latest-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.latest-item h5 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: #fff;
    text-shadow: #000 3px 2px 2px;
}

.latest-item p {
    margin-bottom: 5px;
    color: #fff;
    text-shadow: #000 3px 2px 2px;
}

.latest-item .meta {
    font-size: 0.75rem;
    color: #999;
}

.site-tools {
    display: flex;
    gap: 15px;
    justify-content: space-evenly;
}

.site-tool {
    border: 3px solid #ff6c00;
    border-radius: 10px;
    padding: 10px;
    background: linear-gradient(135deg, orange 0%, #ff6c00 100%)
}

/* .site-tool.item-0 {
    background-image: url(../images/movie-discovery.png), linear-gradient(rgba(255, 165, 0, 0.3), rgba(255, 108, 0, 0.9));
    background-size: cover;
    background-position: center;
}

.site-tool.item-1 {
    background-image: url(../images/latest-movie-trailers.png), linear-gradient(rgba(255, 165, 0, 0.3), rgba(255, 108, 0, 0.9));
    background-size: cover;
    background-position: center;
} */

.site-tool.item-0 {
    background-image: url(../images/actor-collab.png), linear-gradient(135deg, orange 0%, #ff6c00 100%);
    background-size: cover;
    background-position: center;
}

.site-tool.item-1 {
    background-image: url(../images/random-movie.png), linear-gradient(135deg, orange 0%, #ff6c00 100%);
    background-size: cover;
    background-position: center;
}


/* --- 7. Alert Style --- */
.alert-warning {
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    /* background: linear-gradient(135deg, lightsteelblue 0%, #1a73e8 100%); */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    /* transition: transform 0.5s ease; */
    background: linear-gradient(45deg, #FF5C00 0%, orange 100%);
    background-size: 200% 200%;
    background-position: left top;
    transition: background-position 0.6s ease;
    text-decoration: none;
}

.submit-btn:hover {
    /* transform: translateY(-2px); */
    background-position: right bottom;
}

.streaming-providers ul {
    padding: 0px;
}

.streaming-providers ul li {
    display: inline-block;
    margin-right: 5px;
    border-radius: 5px;
    font-size: 0.9em;
}

.streaming-providers ul li img {
    width: 51px;
}

.news-wrapper .featured {
  grid-row: span 2; /* makes the first item taller */
}

.news-wrapper .card:hover {
    transform: none;
}

.news-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* first column bigger */
  grid-auto-rows: 155px; /* adjust as needed */
  gap: 1rem;
}

.card {
  position: relative; /* needed for overlay */
  overflow: hidden;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.news-wrapper .card-content {
    position: absolute;
    bottom: 0; /* overlay at bottom */
    left: 0;
    width: 100%;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(to top, rgba(255, 92, 0, 0.8), rgba(255, 92, 0, 0));
    box-sizing: border-box;

    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 165px;
}

.news-wrapper .card-content p.trailer-released {
    border: none;
    margin: 0;
}

.news-wrapper .card-content h3,.news-wrapper .card-content h4 {
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.featured {
  grid-row: span 2; /* make first card taller */
}

a.submit-btn {
    display: block;
    width: fit-content;
    text-align: center;
    margin-top: 15px;
}

a.link {
    color: #FF5C00;
    font-weight: bold   ;
}

footer {
    width: 100%; 
    border-top: 2px solid #ff6c00; 
    margin: 40px auto; 
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

footer nav.info-links {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 20px;
    margin: 20px 0;
}

footer .info-links div a {
    font-weight: bold;
    color: #ff6c00;
    text-decoration: none;
}

footer .info-links div a:hover {
    text-decoration: underline;
}

footer .footer-copyright {
    width: 100%; 
    border-top: 2px solid #ff6c00; 
    margin: 20px auto; 
    max-width: 1200px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}



@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }

    .movie-card {
        flex-direction: column;
        align-items: center;
    }

    .movie-card img {
        margin: auto;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .featured {
        grid-row: auto;
    }

    .news-wrapper {
        grid-auto-rows: 118px;
        grid-template-columns: none;
    }

    .view-details-button a.submit-btn {
        margin: 15px auto 0;
    }

    ul.nav-links {
        display: none;
    }
    nav.nav-links-section .mobile-nav-container, nav.nav-links-section .icon {
        display: flex;
        flex-direction: row-reverse;
    }

    footer nav.info-links {
        flex-direction: column;
    }

    footer nav.info-links div {
        text-align: center;
    }

    footer .footer-copyright {
        flex-direction: column;
        gap: unset;
    }

    footer .footer-copyright p {
        margin: 0;
    }

    nav.nav-links-section {
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .form-container {
        flex-direction: column;
    }
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.movie-items, .card, .timeline-card {
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry cover 25%;
}

/* preloader animation to ".spinner" */
.spinner {
   width: 20px;
   height: 20px;
   border: 11.2px #ff5c00 double;
   border-left-style: solid;
   border-radius: 50%;
   animation: spinner-aib1d7 0.75s infinite linear;
}

@keyframes spinner-aib1d7 {
   to {
      transform: rotate(360deg);
   }
}