﻿/* PAYWALL */
/* to Note, paywall effect colors are defined in main style.css */

.pricing-section {
	display: flex;
	flex-direction: column;
	margin: 20px 10px 20px 10px;
	color: var(--clr-white-80);
}
.paywall-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: auto;

    width: 100%;
	max-width: 100rem;
}
.paywall-center-container {
    width: calc(100% - 2rem);
    /* overflow-x: hidden; */
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* padding: 20px; */
}
.paywall-header {
    margin: 0px 0px 30px 0px;
    width: 100%;
}
.paywall-header-close {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    column-gap: 10px;
}
.paywall-header h1 {
}
.api-pricing-notice {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--clr-var-dark-background);
    border: 1px solid var(--clr-white-10);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: calc(100% - 4rem);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.api-pricing-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--clr-white-20) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.api-pricing-notice:hover::before {
    opacity: 1;
}
.api-pricing-notice:hover {
    border-color: var(--clr-white-20);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}
.api-notice-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--clr-white-90);
    letter-spacing: -0.02em;
}
.api-notice-content p {
    margin: 0;
    color: var(--clr-white-60);
    font-size: 1rem;
}
.api-notice-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--clr-white-20);
    border-radius: 8px;
    color: var(--clr-white-80);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.api-notice-link:hover {
    background-color: var(--clr-white-90);
    border-color: var(--clr-white-90);
    color: var(--clr-black);
}
.api-notice-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}
.api-notice-link:hover svg {
    transform: translate(2px, -2px);
}
@media (max-width: 768px) {
    .api-pricing-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        width: calc(100% - 3rem);
        gap: 1.5rem;
    }
    .api-notice-content h3 {
        font-size: 1.25rem;
    }
    .api-notice-link {
        width: 100%;
        justify-content: center;
    }
}
.paywall-options-container {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    justify-content: flex-start;
    width: calc(100% - 0.2rem);
    align-items: center;
    padding-bottom: 2rem;
}
.paywall-option {
    background-color: var(--clr-var-dark-background);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    column-gap: 2rem;
    position: relative;
    padding: 20px 15px;

    width: calc(100% - 2rem);
    height: 340px;
    transition: background-color 0.3s ease;
}
.paywall-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.paywall-option.preferred {
    border: 1px solid var(--clr-white-90);
    overflow: hidden;
}

.paywall-option.preferred::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: 
        linear-gradient(90deg, transparent, var(--clr-paywall-effect-1), transparent) 0 0 / 200% 100%,
        linear-gradient(90deg, transparent, var(--clr-paywall-effect-2), transparent) 0 100% / 200% 100%,
        linear-gradient(0deg, transparent, var(--clr-paywall-effect-3), transparent) 0 0 / 100% 200%,
        linear-gradient(0deg, transparent, var(--clr-paywall-effect-4), transparent) 100% 0 / 100% 200%;
    background-repeat: no-repeat;
    filter: blur(4px);
    animation: borderLight 10s linear infinite;
    z-index: 0;
}
@keyframes borderLight {
    0% {
        background-position: 200% 0, -200% 100%, 0 200%, 100% -200%;
    }
    100% {
        background-position: -200% 0, 200% 100%, 0 -200%, 100% 200%;
    }
}
.paywall-option-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
    /* width: 200px; */
    row-gap: 20px;
}
.paywall-toggle-section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 160px;
}
/* Add these to your existing CSS */
#annual-title, #monthly-title, #annual-price, #monthly-price {
    transition: opacity 150ms ease-in-out;
    opacity: 1;
}

.annual-perk {
    transition: all 150ms ease-in-out;
    opacity: 1;
    transform: translateX(0);
}

/* Ensure initial states are set */
#monthly-title, #monthly-price {
    opacity: 0;
}
.paywall-toggle-section span {
    color: var(--clr-white-80);
    font-size: 1rem;
}
.paywall-header-container {
    z-index: 1;
	margin: 0 0 5px 0;
}
.paywall-header-container h1 {
	color: var(--clr-white);
	font-size: 1.3rem;
	margin: 0;
}
.paywall-header-container p {
    margin: 5px 0 0 0;
	color: var(--clr-white-80);
	font-size: 1rem;
	font-weight: 300;
}
.paywall-annual-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    height: 27px;
}
.pw-annual-price-perk {
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* border: 2px solid var(--clr-var-text-40); */
    background-color: var(--clr-white-10);
    border-radius: 10px;
    align-items: center;
    padding: 7px;
    height: min-content;
}
.pw-annual-price-perk span {
    color: var(--clr-white);
    font-size: 0.8rem;
    padding: 0;
    margin: 0;
    text-wrap-mode: nowrap;
}
.paywall-price-container {
    display: flex;
    flex-direction: row;
    column-gap: 8px;
    align-items: flex-end;
	flex-wrap: wrap;
}
.paywall-price-container h1 {
    font-size: var(--fs-paywall-price);
    margin: 0;
}
.paywall-price-container p {
    margin: 0px 0px 2px 0px;
	color: var(--clr-white-80);
	font-size: 0.87rem;
	font-weight: 300;
}
.paywall-perks-container {
    margin: 0px 0px 40px 0px;
    z-index: 1;
    min-width: 174px;
}
.paywall-list-container {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}
.paywall-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 8px;
}
.paywall-list-item img {
    width: 1rem;
}
.paywall-list-item p {
    margin: 0;
    color: var(--clr-white-90);
	font-size: 1rem;
	font-weight: 300;
}
.paywall-options-button {
    position: absolute;
    bottom: 20px;
    width: calc(100% - 30px);
    display: flex;
    justify-content: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}
.secondary-button.paywall,
.primary-button.paywall {
    width: 100%;
	border-radius: 10px;
}
.paywall-options-button p {
	font-size: 1rem;
	font-weight: 300;
	color: var(--clr-white-80);
}
.paywall-desktop-view {
    display: none;
}
.paywall-small-view {
    display: block;
}
/* -- Paywall modal content -- */
.paywall-modal-content {
    margin: 10px 0;
}
/* ------------------------------------------ TOGGLE Styling */
/* The switch - the box around the toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 20px;
}
.switch.small {
    width: 40px;
}
    
/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
    
/* The toggle */
.toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D9D9D9;
    -webkit-transition: .4s;
    transition: .4s;
    border: 1px solid var(--clr-var-toggle-button-outline);
    padding: 10px;
    width: 18px;
}
    
.toggle:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    top: 2px;
    left: 2px;
    right: 0;
    bottom: 0;
    background-color: #FFFFFF;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: 2px 2px 5px rgba(2, 1, 4, 0.25);
}
    
input:checked + .toggle {
    background-color: #40C48A;
}
    
input:focus + .toggle {
    box-shadow: 0 0 1px #ffffff92;
}
    
input:checked + .toggle:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(18px);
    box-shadow: -2px 2px 5px rgba(2, 1, 4, 0.25);
}
    
/* Rounded toggles */
.toggle.round {
    border-radius: 15px;
}
    
.toggle.round:before {
    border-radius: 50%;
}

/* ------------------------------------------ RESPONSIVE Styling --------------------------------------------------- */
/* bigger than a phone, smaller than ipad? */
@media (min-width: 380px) {

}

@media (min-width: 400px) {

}

/* bigger than a phone, smaller than ipad? */
@media (min-width: 460px) {
	/* ---------------------------- Paywall ----------------------- */
    .paywall-option {
        flex-direction: row;
        height: 260px;
    }
    .paywall-perks-container {
        margin: 0px;
    }
    .paywall-option-left {
        height: 170px;
        min-width: 180px;
    }
	
}

@media (min-width: 580px) {
    /* ---------------------------- Paywall ----------------------- */
    .paywall-option {
        column-gap: 4rem;
    }
	.paywall-option-left {
        width: auto;
    }
}

/* styles for tablet */
@media (min-width: 670px) {

}

/* styles for tablet */
@media (min-width: 768px) {

}




/* styles for desktop */
@media (min-width: 991px) {
	
}


/* styles for desktop */
@media (min-width: 1060px) {
	/* ---------------------------- PAYWALL ----------------------- */
	.paywall-list-container {
        row-gap: 25px;
    }
	.paywall-header {
		margin: 50px 0px 40px 0px;
		width: 100%;
		display: flex;
		flex-direction: column;
		row-gap: 10px;
	}

    /* ---------------------------- Paywall - content flips to horizontal ----------------------- */
	.paywall-options-container {
		flex-direction: row;
		justify-content: space-between;
		width: 100%;
	}
	.paywall-option {
		flex-direction: column;
		position: relative;
		/* padding: 20px 15px; */

		width: calc(30% - 15px);
		max-width: 385px;
		height: 580px;
	}
	.paywall-option-left {
		justify-content: space-between;
	}
	.paywall-perks-container {
		margin: 10px 0px;
	}
	.paywall-list-container {
		row-gap: 20px;
	}
	.paywall-desktop-view {
		display: block;
	}
	.paywall-small-view {
		display: none;
	}
	h1.paywall-header {
		margin: 2rem 0px 30px 0px;
		width: 100%;
	}
	
}

/* styles for desktop */
@media (min-width: 1330px) {
	/* ---------------------------- PAYWALL ----------------------- */
	.paywall-list-container {
        row-gap: 25px;
    }
	.paywall-header {
		margin: 50px 0px 40px 0px;
		width: 100%;
		display: flex;
		flex-direction: column;
		row-gap: 10px;
	}
}