/* ppn-frontend.css */
/* network shortcode frontend styles, extracted from style.css */
/*
 * SECTIONS:
 *   CONTAINER + HEADER
 *   PROGRAM STYLES
 *   EPISODE STYLES
 *   DOWNLOAD LINK
 *   SUBSCRIBE FORM
 *   GRID VIEW
 *   LIST VIEW
 *   PROGRAM VIEW MISC
 *   APPLICATION FORM
 *   DISPLAY UTILITIES
 *   SUBSCRIBE + SHARE STYLES
 */

/* CONTAINER + HEADER */

.ppn-container {
    margin: 10px;
    font-family: 'Montserrat', sans-serif;
}

.ppn-header {
    text-align: center;
}

#ppn-header p {
    font-size: 18px;
}

#ppn-header h2 {
    font-size: 30px;
    text-shadow: 0 3px 4px rgba(63, 63, 63, 0.2);
    font-weight: 400;
}

#ppn-episode h3 {
    color: var(--pp-color-secondary);
}

#ppn-episode i {
    margin-top: 7px;
    display: block;
    padding: 0 0 0 55px;
}

/* PROGRAM STYLES */

.ppn-program-description, .ppn-program-talent-name {
    text-align: left;
    letter-spacing: 0;
    color: var(--pp-color-gray-800);
    font-weight: bold;
    opacity: 1;
}

.ppn-program-url a {
    text-align: left;
    letter-spacing: 0;
    color: var(--pp-color-secondary);
    opacity: 1;
}

div.ppn-artwork-inline {
    float: left;
}

.ppn-list-artwork, .ppn-program-artwork {
    max-width: 100%;
}

.ppn-program-row {
    border: 1px solid var(--pp-color-gray-600);
    padding: 20px;
}

.ppn-program-title {
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 480px) {
    .ppn-program-title {
        font-size: larger;
    }
}

.ppn-program-detail * {
    color: var(--pp-color-gray-800);
}

.ppn-program-detail h2 {
    font-weight: bolder;
}

.ppn-program-sub-title {
    color: var(--pp-color-gray-800);
    font-size: x-large;
    font-weight: bolder;
    padding-top: 10px;
}

/* EPISODE STYLES */

.ppn-episode-title {
    color: var(--pp-color-gray-800);
    font-weight: bolder;
}

.ppn-episode-row {
    outline: 1px solid var(--pp-color-gray-600);
    padding: 20px;
}

.ppn-episode-date {
    color: var(--pp-color-gray-800);
    font-style: italic;
    font-size: larger;
}

.ppn-episode-description {
    color: var(--pp-color-gray-800);
    font-size: medium;
}

/* DOWNLOAD LINK */

.ppn-download-link {
    width: 150px;
    max-width: 250px;
    background-color: var(--pp-color-secondary);
    text-align: center;
    min-height: 40px;
}

@media screen and (max-width: 480px) {
    .ppn-download-link {
        max-width: 100%;
    }
}

.ppn-download-link div {
    color: var(--pp-color-white);
    font-weight: 100;
    font-size: 18px;
    line-height: 40px;
    vertical-align: middle;
}

.ppn-download-arrow {
    display: inline-block;
    background-image: url(../images/download.svg);
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
}

/* SUBSCRIBE FORM */

/* shared sub-alert structure */
.sub-success,
.sub-error {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.sub-success {
    border: 1px solid #06843A;
    color: #06843A;
}

.sub-success-icon {
    background-color: #06843A;
    margin: -1px;
}

.sub-success-icon-check {
    width: 100%;
    height: 100%;
    min-height: 50px;
    min-width: 80px;
    background-size: 40px 40px !important;
    background: url(../images/circlecheck.svg) center no-repeat;
}

.sub-error {
    border: 1px solid #B2201A;
    color: #B2201A;
}

.sub-error-icon {
    background-color: #B2201A;
    margin: -1px;
}

.sub-error-icon-check {
    width: 100%;
    height: 100%;
    min-height: 50px;
    min-width: 80px;
    background-size: 40px 40px !important;
    background: url(../images/circleerror.svg) center no-repeat;
}

.sub-alert-text {
    padding: 15px;
    vertical-align: center;
}

.sub-form {
    padding: 20px;
}

.sub-checkbox-cl {
    display: none;
}

.sub-checkbox-cl-label {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin: 5px;
    cursor: pointer;
    font-weight: normal;
}

.sub-checkbox-cl + .sub-checkbox-cl-label:before {
    content: '';
    background: var(--pp-color-gray-300);
    border-radius: 5px;
    border: 2px solid var(--pp-color-gray-300);
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    padding: 2px;
    margin-right: 10px;
    text-align: center;
}

.sub-checkbox-cl:checked + .sub-checkbox-cl-label:after {
    content: "";
    padding: 2px;
    text-align: center;
    position: absolute;
    width: 1px;
    height: 12px;
    border: solid #1C7CD5;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    top: 6px;
    left: 6px;
}

.sub-checkbox-cl:checked {
    background: #1C7CD5;
}

.sub-btn {
    width: 150px;
    height: 40px;
    text-align: center;
    border: none;
    border-radius: var(--pp-border-radius);
    margin-top: 10px;
    background-color: var(--pp-color-secondary);
    color: var(--pp-color-white);
    cursor: pointer;
}

/* screen-reader-only: visually hidden but accessible */
.ppn-form-div .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ppn-form-div {
    max-width: 600px;
    margin: 0 auto;
}

.ppn-form-div .form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--pp-color-gray-400);
    border-radius: var(--pp-border-radius);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
}

.ppn-form-div .form-control:focus {
    border-color: var(--pp-color-secondary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.ppn-form-div textarea.form-control {
    resize: vertical;
}

.ppn-form-div .form-group br {
    display: none;
}

/* GRID VIEW */

.ppn-grid-header {
    margin: 20px 0;
    justify-content: center;
    grid-gap: 12px;
}

.ppn-grid-rows {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 0;
}

.ppn-grid-cell {
    position: relative;
    align-content: center;
}

/* hover effect via modifier class, toggled by shortcode attr */
.ppn-grid-cell--hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ppn-grid-cell--hover:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ppn-grid-img {
    align-items: center;
    justify-content: center;
    display: block;
}

.ppn-grid-title {
    line-height: 1.5em;
    height: 3em;
    overflow: hidden;
}

.ppn-grid-title:hover {
    cursor: hand;
}

.ppn-title {
    font-size: 100%;
    margin-top: 5px;
    padding-bottom: 5px;
    color: var(--pp-color-white);
}

.ppn-title a {
    color: inherit;
}

.ppn-img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.square {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 100%;
}

.square:after {
    content: "";
    display: block;
}

/* centered content container for grid cells */
.ppn-centered-content {
    margin-left: auto;
    margin-right: auto;
    outline: 1px solid var(--pp-color-gray-800);
}

/* bg color when grid titles are displayed */
.ppn-centered-content--titled {
    background-color: var(--pp-color-gray-800);
}

/* LIST VIEW */

.ppn-list-description {
    color: var(--pp-color-gray-800);
    font-size: medium;
    margin-bottom: 15px;
}

/* PROGRAM VIEW MISC */

.podcast-filename {
    margin-top: 2%;
    margin-bottom: 1%;
}

.audio-tag-filename {
    width: 100%;
    margin: 2%;
}

.podcast-summary-paragraph {
    color: black;
    font-size: small;
}

.text-decoration-none {
    text-decoration: none;
}

/* APPLICATION FORM */

.app-paragraphs {
    color: var(--pp-color-gray-900);
    margin: 0;
    font-size: large;
}

.app-form-border {
    border: none;
}

.tos-color {
    color: var(--pp-color-secondary);
}

/* DISPLAY UTILITIES */

.display-inline {
    display: inline;
}

.display-inline-block {
    display: inline-block;
}

.word-break {
    word-break: break-all;
}

/* SUBSCRIBE + SHARE STYLES */

.ppn-subscribe-style {
    color: white;
    padding: 3px;
}

.ppn-share-style {
    color: white;
    padding: 5px;
}

.ppn-margin-bottom {
    margin-bottom: 0;
}

.ppn-claim-style {
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

.ppn-padding {
    padding: 0;
}
