/* Museo Experiences Manager - Frontend Styles */

.mem-experiences-display {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Admin bar */
.mem-admin-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mem-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    background: #fff;
    border-radius: 6px;
    border: 2px solid #0073aa;
    transition: all 0.3s ease;
}

.mem-admin-link:hover {
    color: #fff;
    background: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.mem-admin-link .dashicons {
    font-size: 18px;
}

/* Experiences grid */
.mem-experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.mem-experience-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mem-experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.mem-experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #46b450, #ffb900, #dc3232);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mem-experience-card:hover::before {
    opacity: 1;
}

/* Experience image */
.mem-experience-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.mem-experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.mem-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #adb5bd;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mem-placeholder-image .dashicons {
    font-size: 56px;
    opacity: 0.6;
}

/* Experience type badge */
.mem-experience-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.mem-type-3d { 
    background: linear-gradient(135deg, #0073aa, #005a87);
}

.mem-type-ar { 
    background: linear-gradient(135deg, #46b450, #3d8b40);
}

.mem-type-hologram { 
    background: linear-gradient(135deg, #ffb900, #f39c12);
}

.mem-type-video { 
    background: linear-gradient(135deg, #dc3232, #c0392b);
}

/* Experience content */
.mem-experience-content {
    padding: 25px;
}

.mem-experience-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.mem-experience-description {
    margin: 0 0 20px 0;
    color: #6c757d;
    line-height: 1.6;
    font-size: 14px;
}

/* Experience meta */
.mem-experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.mem-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.mem-meta-item .dashicons {
    font-size: 14px;
    color: #0073aa;
}

.mem-animation-available {
    color: #46b450;
    background: #f0f8f0;
    border-color: #d4edda;
}

.mem-animation-available .dashicons {
    color: #46b450;
}

/* Experience actions */
.mem-experience-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mem-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    justify-content: center;
}

.mem-btn-primary {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,115,170,0.3);
}

.mem-btn-primary:hover {
    background: linear-gradient(135deg, #005a87, #004a73);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,115,170,0.4);
}

.mem-btn-secondary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    border: 2px solid #dee2e6;
}

.mem-btn-secondary:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.mem-btn .dashicons {
    font-size: 16px;
}

/* No experiences state */
.mem-no-experiences {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.mem-no-experiences-icon .dashicons {
    font-size: 80px;
    color: #adb5bd;
    margin-bottom: 20px;
    opacity: 0.5;
}

.mem-no-experiences h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 24px;
}

.mem-no-experiences p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #6c757d;
}

/* Modal styles */
.mem-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mem-modal.show {
    opacity: 1;
    visibility: visible;
}

.mem-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.mem-modal.show .mem-modal-content {
    transform: scale(1);
}

.mem-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px 16px 0 0;
}

.mem-modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.mem-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mem-modal-close:hover {
    color: #dc3232;
    background: #fff;
    transform: rotate(90deg);
}

.mem-modal-body {
    padding: 30px;
}

/* Experience details in modal */
.mem-experience-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.mem-preview-container {
    height: 350px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px dashed #dee2e6;
    overflow: hidden;
}

.mem-preview-placeholder {
    text-align: center;
}

.mem-preview-placeholder .dashicons {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.4;
}

.mem-preview-placeholder p {
    margin: 0;
    font-size: 16px;
    color: #6c757d;
}

.mem-experience-info h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
}

.mem-description {
    margin: 0 0 25px 0;
    color: #6c757d;
    line-height: 1.6;
    font-size: 15px;
}

.mem-details-grid {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.mem-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.mem-detail-item strong {
    color: #495057;
    font-weight: 600;
}

.mem-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
}

.mem-external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    background: #f0f8ff;
    border-radius: 6px;
    border: 1px solid #cce7ff;
    transition: all 0.3s ease;
}

.mem-external-link:hover {
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.mem-external-link .dashicons {
    font-size: 14px;
}

/* Modal actions */
.mem-experience-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

/* Loading and error states */
.mem-loading {
    text-align: center;
    padding: 60px;
    color: #6c757d;
    font-size: 16px;
}

.mem-error {
    text-align: center;
    padding: 60px;
    color: #dc3232;
    font-size: 16px;
}

.mem-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.mem-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    z-index: 999999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mem-notification.show {
    transform: translateX(0);
}

.mem-notification-info { background: linear-gradient(135deg, #0073aa, #005a87); }
.mem-notification-success { background: linear-gradient(135deg, #46b450, #3d8b40); }
.mem-notification-error { background: linear-gradient(135deg, #dc3232, #c0392b); }
.mem-notification-warning { background: linear-gradient(135deg, #ffb900, #f39c12); }

/* Responsive design */
@media (max-width: 768px) {
    .mem-experiences-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mem-experience-card {
        margin: 0 10px;
    }
    
    .mem-experience-details {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mem-experience-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mem-modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 12px;
    }
    
    .mem-modal-header {
        padding: 20px;
    }
    
    .mem-modal-body {
        padding: 20px;
    }
    
    .mem-preview-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .mem-experience-content {
        padding: 20px;
    }
    
    .mem-experience-title {
        font-size: 18px;
    }
    
    .mem-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .mem-admin-link {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .mem-admin-bar,
    .mem-experience-actions,
    .mem-modal {
        display: none !important;
    }
    
    .mem-experiences-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .mem-experience-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
