/**
 * Event Manager Pro - Modern Styles
 * Enhanced CSS for modern, professional design
 */

/* Reset and Base Styles */
.emp-grid-view,
.emp-single-template {
    box-sizing: border-box;
}

.emp-grid-view *,
.emp-single-template * {
    box-sizing: inherit;
}

/* Grid Layout */
.emp-visitors-list,
.emp-exhibitors-list,
.emp-sponsors-list,
.emp-speakers-list,
.emp-agenda-list,
.emp-accommodation-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    margin: 0;
}

/* Card Styles */
.emp-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.emp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.emp-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.emp-card a:hover {
    text-decoration: none;
}

/* Card Image */
.emp-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.emp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.emp-card:hover .emp-card-image img {
    transform: scale(1.05);
}

.emp-placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Card Content */
.emp-card-content {
    padding: 1.5rem;
    position: relative;
}

.emp-card-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.emp-card-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
}

.emp-card-content p:last-child {
    margin-bottom: 0;
}

.emp-card-content strong {
    color: #374151;
    font-weight: 600;
}

/* Status and Level Badges */
.emp-status,
.emp-sponsor-level,
.emp-session-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status Colors */
.emp-status-registered {
    background-color: #dbeafe;
    color: #1e40af;
}

.emp-status-confirmed {
    background-color: #d1fae5;
    color: #065f46;
}

.emp-status-attended {
    background-color: #dcfce7;
    color: #166534;
}

.emp-status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Sponsor Level Colors */
.emp-level-platinum {
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    color: #374151;
}

.emp-level-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.emp-level-silver {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

.emp-level-bronze {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #9a3412;
}

/* Session Type Colors */
.emp-type-keynote {
    background-color: #fef3c7;
    color: #92400e;
}

.emp-type-workshop {
    background-color: #dbeafe;
    color: #1e40af;
}

.emp-type-panel {
    background-color: #e0e7ff;
    color: #3730a3;
}

.emp-type-presentation {
    background-color: #dcfce7;
    color: #166534;
}

.emp-type-networking {
    background-color: #fce7f3;
    color: #be185d;
}

.emp-type-break {
    background-color: #f3f4f6;
    color: #374151;
}

/* Single Page Styles */
.emp-single-template {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.emp-single-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.emp-single-item .entry-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.emp-single-item .entry-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.emp-single-item .entry-content {
    padding: 2rem;
}

.emp-featured-image {
    margin: 0 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.emp-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.emp-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.emp-details p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.emp-details p:last-child {
    margin-bottom: 0;
}

.emp-bio,
.emp-benefits,
.emp-amenities {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
}

.emp-bio h3,
.emp-benefits h3,
.emp-amenities h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

/* Links */
.emp-card a,
.emp-details a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.emp-card a:hover,
.emp-details a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Edit Link */
.entry-footer {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.edit-link a {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
}

.edit-link a:hover {
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emp-visitors-list,
    .emp-exhibitors-list,
    .emp-sponsors-list,
    .emp-speakers-list,
    .emp-agenda-list,
    .emp-accommodation-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .emp-card-content {
        padding: 1.25rem;
    }
    
    .emp-single-template {
        padding: 1rem;
    }
    
    .emp-single-item .entry-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .emp-single-item .entry-title {
        font-size: 2rem;
    }
    
    .emp-single-item .entry-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .emp-card-content h3 {
        font-size: 1.125rem;
    }
    
    .emp-single-item .entry-title {
        font-size: 1.75rem;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emp-card {
    animation: fadeInUp 0.6s ease-out;
}

.emp-card:nth-child(2) { animation-delay: 0.1s; }
.emp-card:nth-child(3) { animation-delay: 0.2s; }
.emp-card:nth-child(4) { animation-delay: 0.3s; }
.emp-card:nth-child(5) { animation-delay: 0.4s; }
.emp-card:nth-child(6) { animation-delay: 0.5s; }

/* Focus states for accessibility */
.emp-card a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .emp-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .emp-card:hover {
        transform: none;
    }
}

