/* Registry Page Styles - Standalone */

.page-registry {
    background: var(--gray-50);
}

.registry-main {
    min-height: 100vh;
}

/* Hero Section */
.registry-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.registry-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.registry-hero > .container > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.search-input-wrapper {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
}

.search-input-wrapper .material-icons {
    position: absolute;
    left: 12px;
    color: var(--gray-400);
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: none;
    font-size: 15px;
    background: transparent;
}

.search-input-wrapper input:focus {
    outline: none;
}

.search-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: none;
    border-left: 1px solid var(--gray-200);
    font-size: 15px;
    color: var(--gray-700);
    background: transparent;
    cursor: pointer;
}

.search-city {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    border-left: 1px solid var(--gray-200);
    font-size: 15px;
}

.search-city:focus {
    outline: none;
}

.search-form .btn {
    white-space: nowrap;
}

/* Trade Chips */
.registry-trades {
    padding: 32px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.trades-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.trade-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.trade-chip:hover,
.trade-chip.active {
    background: var(--primary);
    color: var(--white);
}

.trade-chip .material-icons {
    font-size: 18px;
}

.trade-chip .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 12px;
}

.trade-chip.active .count {
    background: rgba(255,255,255,0.2);
}

/* Results Section */
.registry-results {
    padding: 48px 0;
}

.results-header {
    margin-bottom: 24px;
}

.results-count {
    color: var(--gray-600);
    font-size: 15px;
}

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

.specialist-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.specialist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.specialist-card a {
    display: block;
    color: inherit;
}

.card-image {
    height: 200px;
    background: var(--gray-200);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    font-size: 4rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.card-body .trade {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-body .location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
    font-size: 13px;
}

.card-body .location .material-icons {
    font-size: 16px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.card-footer .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
}

.card-footer .rating .material-icons {
    font-size: 16px;
}

.card-footer .price {
    color: var(--gray-600);
    font-size: 13px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn,
.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s;
}

.page-btn:hover,
.page-num:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    color: var(--white);
}

.page-dots {
    color: var(--gray-400);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
}

.no-results .material-icons {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.3rem;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.no-results p {
    margin-bottom: 24px;
}

/* CTA Section */
.registry-cta {
    padding: 64px 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--gray-300);
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .registry-hero {
        padding: 60px 0 40px;
    }
    
    .registry-hero h1 {
        font-size: 1.8rem;
    }
    
    .search-form {
        flex-direction: column;
        padding: 16px;
    }
    
    .search-input-wrapper,
    .search-select,
    .search-city {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .search-city {
        border-bottom: none;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    .trades-grid {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .trade-chip {
        flex-shrink: 0;
    }
    
    .specialists-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .cta-box {
        padding: 32px 24px;
    }
}
