/* Browse Specific Styles */
.browse-section {
    padding: 80px 0;
    background: var(--gradient-light);
    min-height: calc(100vh - 80px);
}

.browse-header {
    text-align: center;
    margin-bottom: 48px;
}

.browse-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.browse-header p {
    font-size: 20px;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.search-filter-section {
    background: var(--color-white);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.search-container {
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    font-size: 16px;
    background: var(--color-white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-clear:hover {
    color: var(--color-gray-600);
    background: var(--color-gray-100);
}

.search-clear i {
    width: 16px;
    height: 16px;
}

.filters-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    background: var(--color-white);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    min-width: 140px;
}

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

.filter-clear {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 8px;
}

.results-info span {
    font-size: 16px;
    color: var(--color-gray-600);
    font-weight: 500;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px 12px;
    border: 2px solid var(--color-gray-200);
    background: var(--color-white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.view-btn i {
    width: 16px;
    height: 16px;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    transition: all 0.3s ease;
}

.wallet-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.wallet-grid-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.wallet-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.wallet-grid-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.wallet-grid-card:hover::before {
    transform: scaleX(1);
}

.wallet-list-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.wallet-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.wallet-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
}

.wallet-info {
    flex: 1;
}

.wallet-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 4px;
}

.wallet-type {
    font-size: 13px;
    color: var(--color-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-features {
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    margin: 0;
}

.feature-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--color-gray-600);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-list strong {
    color: var(--color-gray-800);
    font-weight: 600;
    font-size: 13px;
}

.wallet-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-security-high {
    background: rgba(72, 187, 120, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.badge-security-very-high {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.badge-free {
    background: rgba(237, 137, 54, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.badge-paid {
    background: rgba(118, 75, 162, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(118, 75, 162, 0.2);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-gray-500);
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--color-gray-100);
    color: var(--color-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-icon i {
    width: 40px;
    height: 40px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gray-600);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading State */
.wallet-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.wallet-grid.loading .wallet-grid-card {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .browse-header h1 {
        font-size: 36px;
    }
    
    .browse-header p {
        font-size: 18px;
    }
    
    .search-filter-section {
        padding: 24px;
        border-radius: 16px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .results-info {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .wallet-grid {
        grid-template-columns: 1fr;
    }
    
    .wallet-list-card {
        flex-direction: column;
        text-align: center;
    }
    
    .wallet-header {
        flex-direction: column;
        text-align: center;
    }
    
    .wallet-logo {
        margin: 0 auto 12px;
    }
    
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}