/* Page Restrict for WooCommerce - Frontend Styles */

/* Restricted Content Messages */
.prw-restricted-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.prw-restricted-content h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2em;
}

.prw-restricted-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #856404;
}

.prw-restricted-shortcode {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #0056b3;
}

.prw-restricted-block {
    background: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #388e3c;
}

.prw-restricted-message {
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.prw-required-products {
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.prw-required-products h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1em;
}

.prw-required-products ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.prw-required-products li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.prw-required-products li:last-child {
    border-bottom: none;
}

.prw-required-products a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.prw-required-products a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Status Badges */
.prw-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prw-status-active {
    background: #d4edda;
    color: #155724;
}

.prw-status-expired {
    background: #f8d7da;
    color: #721c24;
}

.prw-status-never {
    background: #e2e3e5;
    color: #383d41;
}

/* User Access Tables */
.prw-access-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.prw-access-table th,
.prw-access-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.prw-access-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.prw-access-table tr:hover {
    background: #f8f9fa;
}

.prw-access-table tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.prw-view-button,
.prw-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #007cba;
    cursor: pointer;
    font-size: 0.9rem;
}

.prw-view-button:hover,
.prw-btn:hover {
    background: #005a87;
    border-color: #005a87;
    color: white;
    text-decoration: none;
}

.prw-btn-primary {
    background: #007cba;
    border-color: #007cba;
}

.prw-btn-disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.prw-no-access {
    color: #6c757d;
    font-style: italic;
}

/* User Access Shortcode */
.prw-user-access-shortcode {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.prw-user-access-shortcode h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

/* User Access Block */
.prw-user-access-block {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.prw-user-access-block h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

/* Access Row Status Colors */
.prw-access-row.prw-status-active {
    border-left: 4px solid #28a745;
}

.prw-access-row.prw-status-expired {
    border-left: 4px solid #dc3545;
    background: rgba(248, 215, 218, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .prw-restricted-content,
    .prw-restricted-section,
    .prw-restricted-shortcode,
    .prw-restricted-block {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .prw-required-products {
        padding: 1rem;
    }
    
    .prw-access-table {
        font-size: 0.875rem;
    }
    
    .prw-access-table th,
    .prw-access-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .prw-user-access-shortcode,
    .prw-user-access-block {
        padding: 1rem;
    }
}

/* Animation for loading states */
.prw-loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes prw-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prw-fade-in {
    animation: prw-fadeIn 0.3s ease forwards;
}

/* Print styles */
@media print {
    .prw-restricted-content,
    .prw-restricted-section,
    .prw-restricted-shortcode,
    .prw-restricted-block {
        background: none !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    
    .prw-view-button,
    .prw-btn {
        display: none !important;
    }
} 