/**
 * Styles for Gated Assets
 */

/* Gated Asset Template Styles */
.gated-asset-wrapper {
    padding: 60px 0;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h3.gated-asset-title:not([class*="fontsize-"]) {
    color: #101213;
    font-size: 1.8em;
    text-align: left;
    margin: 0 0 12px 0 !important;
    padding-left: 0;
}

.gated-asset-content {
    display: flex;
    background-color: #F2F5F3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #52924e;
    padding: 40px;
    gap: 2.5rem;
}

.gated-asset-visual {
    padding: 0;
    flex: 1 1 30%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content .gated-asset-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 !important;
}

.gated-asset-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 70%;
    width: 100%;
}

.gated-asset-description {
    color: #101213;
}

.gated-asset-description p {
    font-size: 1.2em;
}

.gated-asset-cta {
    margin-top: 20px;
}

.btn-gated {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 100%;
    background-color: #52924e;
    border: 1px solid #52924e !important;
    color: white;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(82, 146, 78, 0.1);
}

.btn-gated:hover {
    background-color: transparent !important;
    border: solid black 1px !important;
    color: black !important;
}

.btn-gated:active {
    box-shadow: 0 1px 2px rgba(82, 146, 78, 0.1);
}

/* Remove outline on focus but maintain accessibility */
.btn-gated:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 146, 78, 0.3);
}

.btn-gated:focus:not(:focus-visible) {
    box-shadow: none;
}

/* Modal Styles */
.gated-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gated-modal.is-active {
    opacity: 1;
}

.gated-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 18, 19, 0.5);
    backdrop-filter: blur(2px);
}

.gated-modal-container {
    position: absolute;
    width: 90%;
    max-width: 600px;
    margin: auto;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform: translate(-50%, -300%);
    left: 50%;
    top: 50%;
    z-index: 1;
}

.gated-modal.is-active .gated-modal-container {
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.gated-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: #101213;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease;
}

.gated-modal-close:hover {
    color: #52924e;
}

.gated-modal-content {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 10px 0;
}

/* Gated Asset Widget Styles */
.gated-asset-widget-wrapper {
    margin: 40px auto !important;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .gated-asset-content {
        flex-direction: column;
    }
    
    .gated-asset-visual,
    .gated-asset-info {
        width: 100%;
    }
    
    .gated-modal-container {
        width: calc(100% - 30px);
        margin: 15px;
        padding: 20px;
    }
} 