/**
 * This stylesheet contains CSS specific to the homepage, such as the styles
 * for the article cards per category (Movie, TV, etc.)
*/

@import "global.css";

/**
 * HEADER
*/
header {
    overflow: hidden;
}

header div.header-bg {
    background-position: center;
    display: block;
    background-size: 100%;
    transition: background-size 0.25s ease-out;
    padding-top: 5.75rem; /* Equal to navbar height */
    color: white;
}

header div.header-bg a {
    color: inherit;
}

@media only screen and (max-width: 767px) {
    header div.header-bg {
        padding-top: 4rem;
    }
}

header div.header-bg:hover {
    background-size: 115%;
}

header div.header-bg:hover header img.card-img  {
    background-size: 120%;
}

@media only screen and (max-width: 1185px) {
    header div.header-bg {
        background-size: cover;
    }

    header div.header-bg:hover {
        background-size: cover;
    }
}


header p.article-rating {
    font-size: 1em;
}

header h4.article-title {
    font-size: 2.15em;
}

header p.article-date {
    font-size: 0.9em;
}

header p.article-author {
    font-size: 0.9em;
}

header p.article-excerpt {
    font-size: 0.85em;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

header img.card-img {
    transition: 0.25s;
    max-height: 450px;
}

header img.card-img:hover {
    transform: scale(1.025);
    box-shadow: 0 25px 50px -12px rgba(255,255,255, 0.25) !important;
}

/**
  * QUICK RATINGS
**/
section.quick-ratings {
    margin: 3rem 0;
}

section.quick-ratings .col {
    margin-bottom: 1.75rem !important;
}

div.qr-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem 1rem 1rem;
    position: relative;
    background-size: cover;
    border-radius: .5rem;
    transition: 0.3s; /* For smooth animation of zoom on hover */
    overflow: hidden;
    height: 100%;
    color: white;
}

div.qr-card > * {
    position: relative;
    z-index: 1; /* Place all items above overlay background */
}

div.qr-card::before {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
}

div.qr-card:hover
{
    /* On hover, zoom the card slight and reveal the shadow */
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.175);
    opacity: 1 !important;
}

div.movie-qr-card::before {
    background-color: rgba(25, 107, 131, 0.85);
}

div.music-qr-card::before {
    background-color: rgba(97, 121, 21, 0.85);
}

div.tv-qr-card::before {
    background-color: rgba(150, 57, 118, 0.85);
}

div.misc-qr-card::before {
    background-color: rgba(173, 112, 14, 0.85);
}

div.default-qr-card::before {
    background-color: rgba(188, 88, 51, 0.85);
}

a.qr-url
{
    text-decoration: none !important;
}

p.qr-title
{
    font-size: 1em;
    margin-bottom: .3rem;
    font-family: Raleway;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4rem;
}

p.qr-date {
    font-size: .75em;
    margin-bottom: 1.35rem;
}

div.movie-card > p.qr-title {
    text-shadow: 0px 4px 4px rgba(0, 83, 107, 0.83);
}

div.music-card > p.qr-title {
    text-shadow: 0px 4px 4px rgba(145, 176, 47, 0.74);
}

div.tv-card > p.qr-title {
    text-shadow: 0px 4px 4px rgba(201, 89, 163, 0.75);
}

div.misc-card > p.qr-title {
    text-shadow: 0px 4px 4px rgba(254, 175, 48, 0.7);
}

p.qr-rating
{
    font-size: 1.25em;
    color: white;
}

img.qr-icon
{
    width: 1.5rem;
    height: 1.5rem;
    z-index: 9;
}

section.quick-ratings .row:hover .qr-card
{
    /*  Make the entire category section
        transparent except the hovered article */
        opacity: 0.45; 
}



/**
 * CATEGORY SECTIONS
*/
section.category-section .row:hover div.article-card {
    /*  Make the entire category section
        transparent except the hovered article */
    opacity: 0.45; 
}

div.article-card:hover {
    opacity: 1 !important;
}

section.category-section  * {
    /*  Add a transition to all elements in a category section */
    transition: .3s; 
}

.tag-section-heading h1 {
    font-weight: 600;
}

/**
 * ARTICLE CARDS
*/
div.article-card {
    margin-bottom: 1.75rem;
}

div.article-card:hover img.ac-visual {
    /* On hover, scale the visual up and reveal the shadow */
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.175);
}

.ac-rating {
    /* Article card rating */
    /* Also applies to header rating */
    padding: 0.25rem 1rem; 
    font-weight: 600;
}

span.ac-date {
    /* Article card date */
    color: rgba(255, 255, 255, 0.5);
}

img.ac-visual { 
    /* Article card visual */
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: .5rem;
}

h2.ac-title { 
    /* Article card title */
    font-size: 1.35em;
    font-weight: 500;
}

div.ac-title-date { 
    /*  Wrapper of the article card title and date */
    padding: 1rem;
    border-radius: .5rem;
}

@media only screen and (max-width: 450px), (min-width: 991px) {
    /* On some screens, use square visuals */
    img.ac-visual {
        aspect-ratio: 1 / 1;
    }
}

@media only screen and (max-width: 560px) {
    /* On small screens, smaller text sizes */
    h2.ac-title {
        font-size: 1.15em;
    }

    span.ac-rating {
        /* Article card rating */
        font-size: 0.9em;
    }

    span.ac-date {
        /* Article card date */
        font-size: 0.85em;
    }

    div.ac-title-date {
        /*  Wrapper of the article card title and date */
        padding: 0;
        background: none !important;
    }
}

/**
 * VIEW ALL LINK
*/
a.cs-view-all {
    margin-right: .5rem;
}

a.cs-view-all:hover {
    /* On hover, reduce opacity */
    opacity: .75;
}

a.cs-view-all:hover + span.material-icons {
    /* On hover, move the arrow to the right */
    transform: translateX(.5rem);
}