/*
Theme Name: Felicia Day
Template: frost
Version: 1.0.0
*/

/* Global */
/* Gradient text */
.text-gradient {
    background-image: var(--wp--preset--gradient--secondary-tertiary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-size: 100%;
    background-repeat: repeat;
    background-color: var(--wp--preset--color--primary);
}
/* Pill Button */
.is-style-pill-button .wp-block-button__link {
    background-color: var(--wp--preset--color--primary-900);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
}
.is-style-pill-button .wp-block-button__link:hover {
    color: #000;
    background-color: var(--wp--preset--color--secondary);
}
.is-style-icon-button .wp-block-button__link {
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 0 8px;
    color: var(--wp--preset--color--primary);
}
.is-style-icon-button .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--primary);
}
.is-style-icon-button .wp-block-button__link:after {
    background-image: url('assets/img/arrow-right.svg');
    content: '';
    display: block;
    height: 16px;
    width: 16px;
}

/* Site header */
.site-header .site-header-group {
    box-shadow: 0px 1px 1px 0px rgba(48, 49, 51, 0.10), 0px 0px 1px 0px rgba(48, 49, 51, 0.05);
}
.wp-block-navigation__responsive-container-close, .wp-block-navigation__responsive-container-open {
    border: none !important;
}
.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
    color: var(--wp--preset--color--primary) !important;
}
.icon-discord a {
    height: 24px;
    width: 24px;
    background-image: url('assets/img/icon-discord.svg');
    background-size: 24px auto;
}
.icon-discord span {
    text-indent: -9999px;
    display: block;
    height: 24px;
    width: 24px;
}
.icon-discord svg {
    display: none;
}

/* Site footer */
.site-footer hr {
    width: 100%;
}
.site-footer .icon-discord a {
    background-image: url('assets/img/icon-discord-white.svg');
}
.site-footer a {
    color: var(--wp--preset--color--base);
}

/* Content */
main.site-content {
    padding: 0 !important;
}

/* Custom Patterns */
/* Project Carousel */
.project-carousel-container {
    background: url('assets/img/bg-project-mobile.png') no-repeat top left;
    background-size: 100% auto;
    padding: 0 24px;
}
/* Project */
.project {
    color: var(--wp--preset--color--base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    height: 434px;
    margin-bottom: 10px !important;
    margin-top: 0;
    width: 268px;
    padding: 24px;
    border-radius: 6px;
    overflow: hidden;
}
.project::after {
    background-image: var(--wp--preset--gradient--overlay);
    content: '';
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}
.project figure {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    margin-top: 0;
}
.project figure img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Appearances Table */
.appearances-table {
    background: linear-gradient(white, white) padding-box,
        var(--wp--preset--gradient--secondary-tertiary) border-box;
    border-radius: 6px;
    border: 1px solid transparent;
}
/* Appearance Row */
.appearance-row:last-child {
    margin-bottom: 0 !important;
}

/* Hero */
.block-hero {
    position: relative;
}
.block-hero::after {
    background-image: url('assets/img/bg-reels.svg');
    background-position: bottom -1px left;
    background-repeat: no-repeat;
    background-size: 100% auto;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    min-height: auto;
    pointer-events: none;
}

/* Contact */
.contact-section {
    background-image: url('assets/img/bg-contact.svg'), var(--wp--preset--gradient--secondary-tertiary);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top left;
}
.contact-section label {
    font-size: 14px;
    font-weight: 500;
}
.contact-section input, .contact-section textarea {
    border-radius: 4px;
    background-color: var(--wp--preset--color--base);
}
.contact-section input:focus, .contact-section textarea:focus {
    border-radius: 4px;
    background-color: var(--wp--preset--color--base);
}
.contact-section input[type="submit"] {
    background-color: var(--wp--preset--color--primary);
    background-image: url('assets/img/arrow-submit.svg');
    background-position: right 10px center;
    background-repeat: no-repeat;
    color: var(--wp--preset--color--base);
    cursor: pointer;
    font-size: var(--wp--preset--font-size--xx-small);
    padding-right: 34px;
    width: auto;
}
.contact-section input[type="submit"]:hover {
    background-color: var(--wp--preset--color--primary-700);
    color: #fff;
}

/* Newsletter Popup */
.newsletter-popup {
    position: fixed;
    width: 90%;
    max-width: 268px !important;
    bottom: 10px;
    right: 10px;
    border-radius: 6px;
    overflow: hidden;
    /* animate the bottom position */
    transition: bottom 0.5s ease-in-out;
    z-index: 999;
}
.newsletter-popup figure {
    padding: 0 !important;
}
.newsletter-popup-content p {
    margin-top: 10px;
}
.newsletter-popup-hidden {
    bottom: -100%;
    transition: bottom 0.75s ease-in-out;
}
.newsletter-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 16px;
    width: 16px;
    background-image: url('assets/img/icon-close.svg');
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    background-size: 16px auto;
    padding: 0;
}

@media only screen and (max-width: 767px) {
    /* Site Header */
    .site-title.wp-block-site-title {
        z-index: 1000000000 !important;
    }
    .wp-block-navigation__responsive-container.is-menu-open {
        padding-top: 20px !important;
    }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        padding-top: 60px !important;
    }
    .wp-block-navigation a:where(:not(.wp-element-button)) {
        font-size: 18px;
    }

    /* Hero */
    .block-hero {
        padding-bottom: 180px;
    }
    .block-hero::after {
        height: 180px;
        background-size: auto 180px;
    }

    /* Custom Patterns */
    /* Appearaances Table */
    .appearances-table {
        padding: 40px 24px !important;
    }
    /* Appearance Row */
    .appearance-row .wp-block-columns.wp-block-columns-is-layout-flex {
        gap: 0;
    }
    .appearance-row .appearance-name p {
        font-size: 22px !important;
    }
    .appearance-row .appearance-date p {
        font-size: 16px !important;
    }

    .newsletter-popup__close {
        height: 24px;
        width: 24px;
        background-size: 24px auto;
    }
}

@media only screen and (min-width: 768px) {
    /* Site Header */
    .header-icons {
        display: none !important;
    }

    /* Custom Patterns */
    /* Project Carousel */
    .project-carousel-container {
        background: none;
        padding: 0;
    }
    .project-carousel {
        background: url('assets/img/blobs-left.png') no-repeat top left,
            url('assets/img/blobs-right.png') no-repeat bottom right;
    }
    /* Project */
    .project {
        width: 334px;
    }
}
