/* Asset Viewer Modal Styles */
.asset-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.asset-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-modal-content {
    background: var(--dark-gray, #1a1a1a);
    border: 1px solid var(--medium-gray, #333);
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.asset-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--medium-gray, #333);
    background: var(--dark-gray, #1a1a1a);
}

.asset-modal-header h3 {
    margin: 0;
    color: var(--white, #fff);
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.asset-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.asset-close-btn:hover {
    background: var(--medium-gray, #333);
    color: var(--white, #fff);
}

.asset-modal-body {
    padding: 24px;
    max-height: calc(90vh - 100px);
    overflow: auto;
}

/* Loading State */
.asset-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--medium-gray, #333);
    border-top: 3px solid var(--accent, #ff2d55);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* Content Display */
.asset-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.asset-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.asset-audio {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

.asset-document-link {
    display: block;
    text-decoration: none;
    color: var(--accent, #ff2d55);
    padding: 24px;
    border: 2px dashed var(--medium-gray, #333);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.asset-document-link:hover {
    border-color: var(--accent, #ff2d55);
    background: rgba(255, 45, 85, 0.05);
}

.document-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.document-preview svg {
    color: var(--accent, #ff2d55);
}

.document-preview p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.asset-generic-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent, #ff2d55);
    color: var(--white, #fff);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.asset-generic-link:hover {
    background: var(--accent-hover, #e02347);
}

/* Error State */
.asset-error {
    text-align: center;
    padding: 40px 20px;
    color: #ff453a;
}

.asset-error p {
    margin: 0;
    font-size: 16px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Asset Icon Button */
.asset-icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
    margin-left: 8px;
}

.asset-icon-btn:hover {
    opacity: 1;
    color: var(--accent, #ff2d55);
    background: rgba(255, 45, 85, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .asset-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .asset-modal-header {
        padding: 16px 20px;
    }
    
    .asset-modal-header h3 {
        font-size: 16px;
        max-width: 250px;
    }
    
    .asset-modal-body {
        padding: 20px;
        max-height: calc(95vh - 80px);
    }
    
    .asset-image {
        max-height: 60vh;
    }
    
    .asset-icon-btn {
        font-size: 14px;
        padding: 3px;
    }
} 