/* Base styles */
:root {
    --color-primary: #29b0f8;
    --color-secondary: #9B59B6;
    --color-text: #3f3f3f;
    --color-white: #ffffff;
    --color-dark: #1B1F3B;
    --color-header: #2C2F48;
    --color-card: #2C2F48;
    --color-green: #2ECC71;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-montserrat);
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.5;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* Header */
.header {
    transition: ease-in-out all .5s;
    background-color: #2c2f487d;
    backdrop-filter: blur(8px);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 90px;
}

.header__content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.header__logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.logo {
    height: auto;
    width: 100%;
    max-width: 300px;
}

/* Hero section */
.hero {
    padding: 6rem 1rem 1rem;
    text-align: center;
}

.hero__content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-top: 2rem;
}

.hero__title {
    font-family: var(--font-poppins);
    font-weight: bold;
    font-size: 33px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.hero__title--outline {
    display: block;
    color: var(--color-white);
}

.hero__title--filled {
    display: block;
}

.hero__title .green {
    color: var(--color-white);
    text-shadow: 2px 2px 0px var(--color-green);
}

.hero__title .blue {
    color: var(--color-white);
    text-shadow: 2px 2px 0px var(--color-primary);
}

.hero__subtitle {
    display: block;
    font-size: 0.9em;
    text-shadow: 2px 2px 0px var(--color-green);
}

.hero__date {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    margin-left: 1rem;
    display: flex;
    align-items: flex-start;
}

.hero__date #current-month {
    padding-right: 5px;
}

.hero__image {
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero__image img {
    width: 100%;
    max-width: 160px;
    height: auto;
}

.hero__disclosure {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.6);
}

.disclosure {
    text-align: center;
    position: relative;
}

.disclosure h3 {
    font-family: var(--font-montserrat);
    font-weight: 400;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.disclosure-modal {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    top: 30px;
    border-radius: 5px;
    z-index: 3;
    line-height: 1.5;
    font-size: 14px;
    text-align: left;
    padding: 15px;
    background-color: var(--color-green);
    color: var(--color-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.disclosure h3 {
    -webkit-tap-highlight-color: transparent;
}

/* Make h3 behave like a link for iOS hover */
.disclosure h3:hover + .disclosure-modal,
.disclosure h3:focus + .disclosure-modal,
.disclosure h3:active + .disclosure-modal,
.disclosure-modal:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Ensure modal stays visible while hovering */
.disclosure-modal {
    pointer-events: none;
}
.disclosure-modal:hover {
    pointer-events: auto;
}


/* Cards section */
.cards {
    padding: 1rem;
    max-width: 1220px;
    margin: 0 auto;
}

.card {
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    gap: 20px;
}

.review-link {
    display: block;
    font-size: 14px;
    color: var(--color-white);
    text-decoration: underline;
    margin-top: 1rem;
}

.review-link:hover {
    color: var(--color-green);
}


.card__logo.card--featured,
.card__content.card--featured {
    border: 1px solid var(--color-green);
}

.card__rank {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
    border-top-left-radius: 10px;
    clip-path: polygon(0 0, 0% 100%, 100% 0);
    height: 60px;
    width: 70px !important;
}

.card__rank.card--featured{
    background-color: var(--color-green);
    color: var(--color-white);
}

.card__logo {
    background-color: var(--color-card);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card__logo-img {
    max-height: auto;
    width: 100%;
    max-width: 160px;
}

.card__content {
    padding: 2rem;
    background-color: var(--color-card);
    border-radius: 10px;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.card__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card__title {
    font-size: 30px;
    margin-right: 2rem;
    position: relative;
    margin-bottom: 1rem;
    display: none;
}

.card__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 35%;
    height: 1px;
    background-color: var(--color-white);
}

.card__rating {
    font-size: 44px;
    text-align: center;
    position: relative;
}

.card__rating::before{
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    width: 100%;
    height: 1px;
    background-color: var(--color-white);
}

.card__score {
    color: var(--color-primary);
    font-weight: bold;
}

.card__score.card--featured {
    color: var(--color-green);
}

.card__description {
    font-size: 15px;
    margin: 1.5rem 0;
}

.card__features {
    display: grid;
    gap: 0.5rem;
}

.card__feature {
    font-size: 12px;
}

.card__feature-label {
    font-weight: 600;
}

.card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.card__review {
    color: var(--color-white);
    text-decoration: underline;
    font-size: 10px;
}

.card__cta {
    background-color: var(--color-green);
    color: var(--color-white);
    text-decoration: none;
    padding: 3px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
}

.card__cta:hover {
    background-color: var(--color-primary);
}

/* Content section */
.content {
    padding: 2rem 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.content__title {
    color: var(--color-white);
    text-shadow: 3px 2px 0px var(--color-primary);
    font-size: 30px;
    margin-bottom: 1.5rem;
    position: relative;
}

.content__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: -10px;
    width: 20%;
    height: 1px;
    background-color: var(--color-white);
}

.content__text {
    margin-bottom: 3rem;
}

.content__text p {
    font-size: 17px;
    margin-bottom: 1rem;
}

.content__text h3 {
    font-size: 17px;
    margin-bottom: 0.5rem;
}

.content__text ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

.content__text li {
    font-size: 17px;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-header);
    padding: 2rem 1rem;
    text-align: center;
}

.footer__logo {
    height: 28px;
    width: auto;
    margin-bottom: 1rem;
}

.footer__copyright {
    font-size: 17px;
    margin-bottom: 1rem;
}

/* Tablet and Up - 768px+ */
@media (min-width: 768px) {
    .card__rank {
        height: 15%;
        width: 10% !important;
    }
}

/* Desktop styles */
@media (min-width: 1200px) {

    .hero__content {
        align-items: flex-end;
    }

    .hero__title {
        font-size: 62px;
        flex: 0 0 70%;
    }

    .hero__title .green {
        color: var(--color-white);
        text-shadow: 4px 3px 0px var(--color-green);
    }
    
    .hero__title .blue {
        color: var(--color-white);
        text-shadow: 4px 3px 0px var(--color-primary);
    }
    
    .hero__subtitle {
        display: block;
        font-size: 0.9em;
        text-shadow: 4px 3px 0px var(--color-green);
    }

    .hero__date {
        font-size: 26px;
        flex: 0 0 15%;
    }

    .hero__disclosure {
        font-size: 16px;
    }

    .hero__image {
        display: flex;
        flex: 0 0 15%;
    }

    .cards {
        padding: 2rem 0;
    }

    .card {
        display: grid;
        grid-template-columns: 320px 1fr;
        min-height: 272px;
    }

    .card__content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        align-items: flex-start;
        justify-content: center;
    }

    .card__logo {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        margin-bottom: 0;
    }

    .card__description {
        width: 100%;
        text-align: center;
        font-size: 20px;
        margin:  0;
    }

    .card__logo-img {
        max-height: 72px;
    }

    .card__content {
        padding: 3rem;
    }

    .content__title {
        font-size: 40px;
    }

    .content__title::before {
        width: 280px;
    }

    .card__title {
        display: block;
    }

    .card__rank {
        height: 80px;
        width: 90px !important;
        font-weight: 700;
        font-size: 20px;
    }

    .card__rating::before{
       display: none;
    }
}
