/**
 * EOS Learn Gravity Addon - Showcase Styles
 */

/* Showcase Item Highlighting */
.elgf-showcase-item {
    position: relative;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-left: 4px solid #f39c12 !important;
}

.elgf-showcase-badge {
    display: inline-flex;
    align-items: center;
    color: #f39c12;
    font-weight: 600;
    margin-right: 8px;
}

.elgf-showcase-badge svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Showcase Legend */
.elgf-showcase-legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff9e6;
    border: 1px solid #f39c12;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    color: #333;
}

.elgf-showcase-legend svg {
    width: 16px;
    height: 16px;
    fill: #f39c12;
    flex-shrink: 0;
}

/* Processing Modal */
.elgf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.elgf-modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.elgf-modal-content p {
    margin: 20px 0 0;
    font-size: 16px;
    color: #333;
}

/* Spinner */
.elgf-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: elgf-spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Notification */
.elgf-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000000;
    max-width: 350px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.elgf-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.elgf-notification-success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.elgf-notification-error {
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.elgf-notification-info {
    border-left: 4px solid #3498db;
    color: #3498db;
}

/* Prevent body scroll when modal is open */
body.elgf-modal-open {
    overflow: hidden;
}

/* Download Button Enhancement */
#evidence_dow {
    position: relative;
    transition: all 0.3s ease;
}

#evidence_dow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#evidence_dow:active {
    transform: translateY(0);
}

/* Checkbox Enhancement */
.evidence_ck {
    cursor: pointer;
    transform: scale(1.2);
    margin-right: 10px;
}

#all_evidence_ck {
    cursor: pointer;
    transform: scale(1.2);
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .elgf-modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .elgf-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .elgf-showcase-legend {
        font-size: 13px;
    }
}

/* Admin color scheme compatibility */
body.admin-color-light .elgf-spinner {
    border-top-color: #0073aa;
}

body.admin-color-blue .elgf-spinner {
    border-top-color: #52accc;
}

body.admin-color-coffee .elgf-spinner {
    border-top-color: #c7a589;
}

body.admin-color-ectoplasm .elgf-spinner {
    border-top-color: #a3b745;
}

body.admin-color-midnight .elgf-spinner {
    border-top-color: #e14d43;
}

body.admin-color-ocean .elgf-spinner {
    border-top-color: #738e96;
}

body.admin-color-sunrise .elgf-spinner {
    border-top-color: #dd823b;
}

/* Accessibility */
.elgf-showcase-badge:focus,
#evidence_dow:focus,
.evidence_ck:focus,
#all_evidence_ck:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .elgf-modal,
    .elgf-notification,
    #evidence_dow,
    .evidence_ck,
    #all_evidence_ck {
        display: none !important;
    }
    
    .elgf-showcase-item {
        border-left: 4px solid #000 !important;
        background: transparent;
    }
}
