/**
 * Common Frontend Styles for All WPE Event Manager Blocks
 * File: assets/css/blocks-frontend.css
 */

/* Reset & Common Styles */
.wpe-content-card *,
.wpe-hero-block *,
.wpe-alert-banner *,
.wpe-cta-section *,
.wpe-sessions-schedule-block * {
    box-sizing: border-box;
}

/* Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Common Card Container */
.wpe-content-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

.wpe-content-card h2 {
    color: #0f4c21;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.wpe-content-card h3 {
    color: #0f4c21;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.wpe-content-card h4 {
    color: #212529;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.wpe-content-card p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

/* Common Button Styles */
.wpe-btn,
.wpe-btn-primary,
.wpe-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.wpe-btn-primary {
    background: #1a7431;
    color: white;
}

.wpe-btn-primary:hover {
    background: #0f4c21;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,76,33,0.3);
    color: white;
}

.wpe-btn-secondary {
    background: white;
    color: #495057;
    border: 2px solid #dee2e6;
}

.wpe-btn-secondary:hover {
    border-color: #1a7431;
    color: #1a7431;
    transform: translateY(-2px);
}

/* Loading State */
.wpe-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #6c757d;
}

.wpe-loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #dee2e6;
    border-top-color: #1a7431;
    border-radius: 50%;
    animation: wpe-spin 0.8s linear infinite;
}

@keyframes wpe-spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.wpe-error {
    padding: 1.5rem;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Empty State */
.wpe-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.wpe-empty-state svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Grid Utilities */
.wpe-grid {
    display: grid;
    gap: 1.5rem;
}

.wpe-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wpe-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.wpe-grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Flex Utilities */
.wpe-flex {
    display: flex;
    gap: 1rem;
}

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

.wpe-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Spacing Utilities */
.wpe-mt-1 { margin-top: 0.5rem; }
.wpe-mt-2 { margin-top: 1rem; }
.wpe-mt-3 { margin-top: 1.5rem; }
.wpe-mt-4 { margin-top: 2rem; }

.wpe-mb-1 { margin-bottom: 0.5rem; }
.wpe-mb-2 { margin-bottom: 1rem; }
.wpe-mb-3 { margin-bottom: 1.5rem; }
.wpe-mb-4 { margin-bottom: 2rem; }

.wpe-p-1 { padding: 0.5rem; }
.wpe-p-2 { padding: 1rem; }
.wpe-p-3 { padding: 1.5rem; }
.wpe-p-4 { padding: 2rem; }

/* Badge */
.wpe-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpe-badge-primary {
    background: #1a7431;
    color: white;
}

.wpe-badge-secondary {
    background: #6c757d;
    color: white;
}

.wpe-badge-success {
    background: #28a745;
    color: white;
}

.wpe-badge-warning {
    background: #ffc107;
    color: #000;
}

.wpe-badge-info {
    background: #17a2b8;
    color: white;
}

/* Icon Styles */
.wpe-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wpe-icon-sm {
    width: 16px;
    height: 16px;
}

.wpe-icon-lg {
    width: 24px;
    height: 24px;
}

/* Transitions */
.wpe-transition {
    transition: all 0.2s ease-in-out;
}

/* Hover Effects */
.wpe-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.wpe-hover-scale:hover {
    transform: scale(1.02);
}

/* Responsive Utilities */
@media (max-width: 1024px) {
    .wpe-content-card {
        padding: 2rem;
    }
    
    .wpe-content-card h2 {
        font-size: 1.75rem;
    }
    
    .wpe-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .wpe-content-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .wpe-content-card h2 {
        font-size: 1.5rem;
    }
    
    .wpe-content-card h3 {
        font-size: 1.25rem;
    }
    
    .wpe-grid,
    .wpe-grid-2,
    .wpe-grid-3,
    .wpe-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .wpe-flex {
        flex-direction: column;
    }
    
    .wpe-btn,
    .wpe-btn-primary,
    .wpe-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .wpe-hero-actions,
    .wpe-cta-section,
    .wpe-btn,
    .wpe-btn-primary,
    .wpe-btn-secondary {
        display: none;
    }
    
    .wpe-content-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Accessibility */
.wpe-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.wpe-btn:focus,
.wpe-btn-primary:focus,
.wpe-btn-secondary:focus,
a:focus {
    outline: 2px solid #1a7431;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Dark Mode Support (Optional)
@media (prefers-color-scheme: dark) {
    .wpe-content-card {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .wpe-content-card h2,
    .wpe-content-card h3,
    .wpe-content-card h4 {
        color: #4ade80;
    }
    
    .wpe-content-card p {
        color: #d1d5db;
    }
} */