/* =========================================================
   CLICKS PAGE
========================================================= */

body {
    margin: 0;
    padding: 0;
    background: #050505;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.clicks-page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 0 100px;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.clicks-header {
    text-align: center;
    margin-bottom: 45px;
}

.clicks-header h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
}

.clicks-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #aaa;
    font-size: 17px;
    line-height: 1.6;
}

h2 {
    color: yellow;
}


/* =========================================================
   FEATURED / LATEST ISSUE
========================================================= */

.clicks-featured {
    max-width: 850px;
    margin: 0 auto 70px;
}

.issue-heading {
    text-align: center;
    margin-bottom: 22px;
}

.issue-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(28px, 4vw, 42px);
}

.latest-badge {
    display: inline-block;
    padding: 7px 15px;

    background: #0f62fe;
    color: #fff;

    border-radius: 30px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.featured-image {
    width: 100%;
    margin: 0 auto;

    background: #111;

    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0,0,0,.8);
}

.featured-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   FEATURED ACTIONS
========================================================= */

.issue-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;

    margin-top: 25px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 220px;

    padding: 14px 22px;

    text-decoration: none;
    border-radius: 8px;

    transition: transform .2s ease;
}

.action-button:hover {
    transform: translateY(-3px);
}

.action-button strong,
.action-button small {
    display: block;
}

.action-button strong {
    font-size: 14px;
}

.action-button small {
    margin-top: 3px;
    font-size: 11px;
    opacity: .7;
}

.pdf-button {
    background: #fff;
    color: #111;
}

.podcast-button {
    background: #0f62fe;
    color: #fff;
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: rgba(0,0,0,.12);
}


/* =========================================================
   FEATURED PODCAST
========================================================= */

.podcast-player {
    margin-top: 18px;
    padding: 18px 20px;

    background: #111;

    border: 1px solid #252525;
    border-radius: 10px;
}

.podcast-title {
    margin-bottom: 10px;

    color: #ddd;

    font-size: 13px;
    font-weight: bold;
}

.podcast-player audio {
    width: 100%;
}


/* =========================================================
   PREVIOUS ISSUES HEADING
========================================================= */

.previous-heading {
    max-width: 1100px;
    margin: 0 auto 30px;

    padding-top: 40px;

    border-top: 1px solid #242424;

    text-align: center;
}

.previous-heading h2 {
    margin: 0;

    font-size: clamp(26px, 4vw, 38px);
}


/* =========================================================
   PREVIOUS ISSUES GRID
========================================================= */

.previous-issues {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 35px;

    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   ISSUE CARD
========================================================= */

.issue-card {
    background: #111;

    border: 1px solid #252525;
    border-radius: 14px;

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.issue-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}


/* =========================================================
   CARD HEADING
========================================================= */

.card-heading {
    padding: 18px 20px;

    text-align: center;
}

.card-heading h3 {
    margin: 0;

    font-size: 24px;
}


/* =========================================================
   CARD IMAGE
========================================================= */

.card-image {
    width: 100%;
    background: #080808;
}

.card-image img {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   CARD BUTTONS
========================================================= */

.card-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    padding: 18px;
}

.card-button {
    display: block;

    padding: 13px 10px;

    border-radius: 7px;

    text-align: center;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.card-button:hover {
    transform: translateY(-2px);
}

.card-pdf {
    background: #fff;
    color: #111;
}

.card-podcast {
    background: #0f62fe;
    color: #fff;
}


/* =========================================================
   CARD AUDIO
========================================================= */

.card-audio {
    padding: 0 18px 18px;
}

.card-audio audio {
    width: 100%;
    height: 40px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .clicks-page {
        width: calc(100% - 24px);
        padding-top: 30px;
    }

    .clicks-featured {
        margin-bottom: 50px;
    }

    .previous-issues {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .issue-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .action-button {
        min-width: 0;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }

}

/* Hide podcast until button clicked */

.podcast-hidden {
    display: none;
}


/* Podcast buttons are now buttons instead of links */

button.podcast-button,
button.card-podcast {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}


/* Make main button retain correct layout */

button.podcast-button {
    text-align: left;
}


/* Small card podcast button */

button.card-podcast {
    width: 100%;
}


/* Player animation */

.podcast-player.podcast-open,
.card-audio.podcast-open {
    display: block;
    animation: podcastFadeIn .3s ease;
}

@keyframes podcastFadeIn {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   PODCAST LOADING SPINNER
========================================================= */

.podcast-spinner {
    display: inline-block;

    width: 16px;
    height: 16px;

    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: podcastSpin .7s linear infinite;

    vertical-align: middle;
}

@keyframes podcastSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   PLAYER LOADING STATE
========================================================= */

.podcast-loading {
    position: relative;
}


/* Featured podcast */

.podcast-player.podcast-loading::before {
    content: "Loading podcast...";

    display: block;

    padding: 10px 0 15px;

    color: #aaa;

    font-size: 13px;
    text-align: center;
}


/* Small card podcast */

.card-audio.podcast-loading::before {
    content: "Loading podcast...";

    display: block;

    padding: 8px 0 12px;

    color: #aaa;

    font-size: 12px;
    text-align: center;
}


/* =========================================================
   PODCAST BUTTON
========================================================= */

.podcast-button,
.card-podcast {
    cursor: pointer;
}


/* Prevent button changing size while loading */

.card-podcast {
    min-height: 44px;
}

/* =========================================================
   LATEST ISSUE ACCESS
========================================================= */

.clicks-access {
    max-width: 620px;

    margin: 0 auto 70px;
    padding: 45px;

    background:
        linear-gradient(
            145deg,
            #151515,
            #0b0b0b
        );

    border: 1px solid #292929;
    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.65);

    text-align: center;
}


/* =========================================================
   BADGE
========================================================= */

.access-badge {
    display: inline-block;

    padding: 7px 15px;
    margin-bottom: 18px;

    background: #0f62fe;
    color: #fff;

    border-radius: 30px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


/* =========================================================
   HEADING
========================================================= */

.clicks-access h2 {
    margin: 0 0 12px;

    color: #fff;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.access-intro {
    max-width: 480px;

    margin: 0 auto 32px;

    color: #aaa;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.access-form {
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #ddd;

    font-size: 12px;
    font-weight: 700;
}

.form-group input {
    box-sizing: border-box;

    width: 100%;

    padding: 15px 16px;

    background: #080808;
    color: #fff;

    border: 1px solid #333;
    border-radius: 8px;

    outline: none;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-group input:focus {
    border-color: #0f62fe;

    box-shadow:
        0 0 0 3px rgba(15,98,254,.15);
}

.form-group input::placeholder {
    color: #666;
}


/* =========================================================
   SUBMIT
========================================================= */

.access-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;

    margin-top: 8px;
    padding: 16px 20px;

    background: #0f62fe;
    color: #fff;

    border: 0;
    border-radius: 8px;

    cursor: pointer;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    transition:
        background .2s ease,
        transform .2s ease;
}

.access-submit:hover {
    background: #0353dc;

    transform: translateY(-2px);
}

.access-arrow {
    font-size: 22px;
}


/* =========================================================
   SECURITY MESSAGE
========================================================= */

.access-security {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;

    margin-top: 22px;

    color: #777;

    text-align: left;
}

.access-security span {
    color: #38b46a;

    font-weight: bold;
}

.access-security p {
    margin: 0;

    max-width: 420px;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .clicks-access {
        padding: 30px 20px;
    }

}

/* =========================================================
   FORM MESSAGES
========================================================= */

.clicks-alert {
    max-width: 620px;

    box-sizing: border-box;

    margin: 0 auto 25px;
    padding: 15px 18px;

    border-radius: 8px;

    font-size: 14px;
    line-height: 1.5;
}

.clicks-success {
    background: rgba(46, 160, 67, .15);
    color: #7ee787;

    border: 1px solid rgba(46, 160, 67, .4);
}

.clicks-error {
    background: rgba(248, 81, 73, .15);
    color: #ff7b72;

    border: 1px solid rgba(248, 81, 73, .4);
}