/* Robots Catalog Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb i {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Active Nav Link */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filters-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Robots Catalog */
.robots-catalog {
    padding: 60px 0;
    background: var(--light-color);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Robot Item Card */
.robot-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.robot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.robot-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    color: white;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.robot-badge.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.robot-badge.new {
    background: var(--secondary-color);
}

.robot-badge.eco {
    background: #22c55e;
}

.robot-image {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.robot-image i {
    font-size: 6rem;
    color: white;
    transition: var(--transition);
}

.robot-item:hover .robot-image i {
    transform: scale(1.1);
}

.robot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.robot-item:hover .robot-overlay {
    opacity: 1;
}

.btn-white {
    background: white;
    color: var(--dark-color);
}

.btn-white:hover {
    background: var(--light-color);
}

.robot-info {
    padding: 1.5rem;
}

.robot-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.robot-category {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.robot-desc {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

/* Robot Specifications */
.robot-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
}

.spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.spec i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.spec span {
    font-size: 0.75rem;
    color: var(--text-color);
}

/* Robot Pricing */
.robot-pricing {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.price-option:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-color);
}

.price-value {
    font-weight: 700;
    color: var(--primary-color);
}

/* Robot Actions */
.robot-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 1.25rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA Catalog */
.cta-catalog {
    padding: 60px 0;
    background: white;
}

.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-content h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-content p {
    opacity: 0.95;
    font-size: 1.125rem;
}

.cta-action {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filters-wrapper {
        grid-template-columns: 1fr;
    }
    
    .filters-section {
        position: static;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .robot-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .robot-actions {
        grid-template-columns: 1fr;
    }
    
    .btn-icon {
        width: 100%;
    }
}

/* Loading State */
.catalog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.catalog-loading .spinner {
    width: 60px;
    height: 60px;
}

/* Empty State */
.catalog-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.catalog-empty i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.catalog-empty h3 {
    margin-bottom: 0.5rem;
}

.catalog-empty p {
    color: var(--text-color);
    margin-bottom: 2rem;
}