/* Model Catalog - Frontend Styles */
.mc-catalog-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.mc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.mc-logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.mc-search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.mc-search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.mc-search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.mc-search-box input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Filters Bar */
.mc-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-bottom: 30px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.mc-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.mc-count svg {
    width: 16px;
    height: 16px;
}

.mc-active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mc-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.mc-filter-tag:hover {
    background: #fee2e2;
    color: #dc2626;
}

.mc-filter-actions {
    display: flex;
    gap: 10px;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
}

.mc-btn:hover {
    background: #f9fafb;
}

.mc-btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: white;
    border: none;
}

.mc-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Grid */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Model Card */
.mc-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mc-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

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

.mc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.mc-card:hover .mc-card-overlay {
    opacity: 1;
}

.mc-card-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.mc-card:hover .mc-card-badges {
    transform: translateY(0);
    opacity: 1;
}

.mc-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
}

.mc-card-content {
    padding: 16px;
}

.mc-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    transition: color 0.2s;
}

.mc-card:hover .mc-card-title {
    color: #9333ea;
}

.mc-card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mc-card-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.mc-card-info-item svg {
    width: 14px;
    height: 14px;
    color: #9333ea;
}

.mc-card-photos-count {
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
}

/* Empty State */
.mc-empty {
    text-align: center;
    padding: 80px 20px;
}

.mc-empty-icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mc-empty-icon svg {
    width: 32px;
    height: 32px;
    color: #9ca3af;
}

.mc-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.mc-empty p {
    color: #6b7280;
    margin: 0 0 20px 0;
}

/* Modal */
.mc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mc-modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.mc-modal-overlay.active .mc-modal {
    transform: scale(1);
}

.mc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.mc-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.mc-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mc-modal-close:hover {
    background: #e5e7eb;
}

.mc-modal-close svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.mc-modal-body {
    overflow-y: auto;
    padding: 24px;
}

/* Tabs */
.mc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.mc-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mc-tab svg {
    width: 16px;
    height: 16px;
}

.mc-tab:hover {
    color: #9333ea;
}

.mc-tab.active {
    color: #9333ea;
    border-bottom-color: #9333ea;
}

.mc-tab-content {
    display: none;
}

.mc-tab-content.active {
    display: block;
}

/* Gallery Grid */
.mc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.mc-gallery-item-large {
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.mc-gallery-item-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mc-gallery-item-large:hover img {
    transform: scale(1.05);
}

.mc-gallery-item-large::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.mc-gallery-item-large:hover::after {
    background: rgba(0,0,0,0.2);
}

/* Info Grid */
.mc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.mc-info-item {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
}

.mc-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.mc-info-label svg {
    width: 14px;
    height: 14px;
}

.mc-info-value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.mc-bio {
    margin-bottom: 24px;
}

.mc-bio h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.mc-bio p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

.mc-categories {
    margin-bottom: 24px;
}

.mc-categories h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.mc-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mc-category-tag {
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
}

/* Lightbox */
.mc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mc-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.mc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mc-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.mc-lightbox-close svg {
    width: 20px;
    height: 20px;
    color: white;
}

.mc-lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.mc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mc-lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.mc-lightbox-nav svg {
    width: 24px;
    height: 24px;
    color: white;
}

.mc-lightbox-prev {
    left: 20px;
}

.mc-lightbox-next {
    right: 20px;
}

.mc-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .mc-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mc-search-box {
        max-width: none;
    }
    
    .mc-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .mc-modal {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .mc-modal-body {
        padding: 16px;
    }
    
    .mc-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .mc-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading */
.mc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 12px;
    color: #9333ea;
}

.mc-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top-color: #9333ea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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