/**
 * Pay for Access - Public Styles
 * Version: 0.1.0
 */

/* Gate Template Styles */
.pfa-restricted-content {
    margin: 2em 0;
}

.pfa-gate-content {
    padding: 2em;
    background: #f7f7f7;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    text-align: center;
}

.pfa-gate-content p {
    margin: 1em 0;
}

.pfa-gate-content .button {
    display: inline-block;
    margin: 0.5em;
}

/* Elementor Fallback Styles */
.pfa-elementor-fallback {
    padding: 2em;
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    margin: 1em 0;
}

.pfa-fallback-inner {
    max-width: 600px;
    margin: 0 auto;
}

.pfa-elementor-fallback p {
    margin: 1em 0;
}

/* Purchased Content List Styles */
.pfa-purchased-content-wrapper {
    margin: 2em 0;
}

/* Simple List Layout */
.pfa-purchased-items.pfa-simple-list {
    display: block;
    margin-bottom: 2em;
}

.pfa-simple-list .pfa-list-item {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #e1e1e1;
}

.pfa-simple-list .pfa-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pfa-simple-list p {
    margin: 0;
    line-height: 1.6;
}

.pfa-simple-list .pfa-excerpt {
    font-size: 0.8em;
    color: #666;
}

.pfa-simple-list strong a {
}

.pfa-simple-list strong a:hover {
    text-decoration: underline;
}

.pfa-view-link {
    margin-left: 0.5em;
    text-decoration: none;
    color: #0073aa;
}

.pfa-view-link:hover {
    text-decoration: underline;
}

/* Product Warning Badge */
.pfa-product-warning {
    margin-bottom: 1em;
}

.pfa-warning-badge {
    display: inline-block;
    background: #d63384;
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    padding: 0.25em 0.5em;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Content Message */
.pfa-no-content {
    text-align: center;
    padding: 3em 1em;
    background: #f7f7f7;
    border-radius: 4px;
}

.pfa-no-content p {
    margin: 1em 0;
    color: #666;
}

/* Pagination */
.pfa-pagination {
    text-align: center;
    margin-top: 2em;
}

.pfa-pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.25em;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 3px;
}

.pfa-pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pfa-purchased-items {
        grid-template-columns: 1fr;
    }
    
    .pfa-gate-content {
        padding: 1.5em;
    }
    
    .pfa-elementor-fallback {
        padding: 1.5em;
    }
}

/* WooCommerce Product Grid in Gate */
.pfa-gate-content .products {
    margin-top: 2em;
}

.pfa-gate-content .woocommerce {
    text-align: left;
}

/* Utility Classes */
.pfa-text-center {
    text-align: center;
}

.pfa-mt-1 { margin-top: 1em; }
.pfa-mt-2 { margin-top: 2em; }
.pfa-mb-1 { margin-bottom: 1em; }
.pfa-mb-2 { margin-bottom: 2em; }