/* Catalog Library Styles */
.catalog-library-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.catalog-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.catalog-description {
    font-size: 1.2em;
    color: #666;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filters Section */
.catalog-filters {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-group {
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Catalogs Grid */
.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.catalog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Catalog Cover */
/* Face din cover un container de centrare */
.catalog-cover {
    position: relative;
    /* height: 220px;              /* cât ai deja */
    background: #f8f9fa;
    overflow: hidden;
    display: flex;              /* centrează logo-ul în spațiu */
    align-items: center;
    justify-content: center;
}

/* Logo pe tot spațiul disponibil, păstrând proporțiile (contain, fără tăiere) */
.catalog-cover .brand-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;        /* important: nu taie, doar scalează */
    display: block;             /* elimină gapul de la inline images */
    padding: 24px;              /* opțional: „respirație” */
    border: 0;                  /* elimină chenarul mic */
    border-radius: 0;
    background: transparent;    /* dacă logo-urile sunt pe fundal alb, poți pune #fff aici */
}

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

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

.catalog-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.catalog-badge.new {
    background: #007bff;
}

/* Catalog Info */
.catalog-info {
    padding: 10px;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.catalog-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.catalog-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.catalog-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.spec {
    background: #f8f9fa;
    color: #555;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Categories */
.catalog-categories {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 5px;
}

/* Actions */
.catalog-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results-content i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* Statistics */
.catalog-stats {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Related Links */
.related-links {
    margin-top: 50px;
}

.related-links h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    color: #007bff;
    border-color: #007bff;
}

.link-card i {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.7;
}

.link-card span {
    font-weight: 600;
    font-size: 1.1em;
}

.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalog-library-page {
        padding: 15px;
    }
    
    .catalogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .catalog-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .catalog-header h1 {
        font-size: 2em;
    }
    
    .catalog-description {
        font-size: 1em;
    }
    
    .catalog-filters {
        padding: 20px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}